From e056f1931f88ee5f96105e1f5c705bc2ca73d42a Mon Sep 17 00:00:00 2001
From: weitang
Date: Thu, 5 Jun 2025 10:36:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E8=AE=BE=E5=A4=87=E4=B8=8A=E4=BC=A0?=
=?UTF-8?q?=E6=96=87=E4=BB=B6=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../iec61850/client/IEC61850Service.java | 4 +--
.../yfd/platform/config/HttpServerConfig.java | 8 +++++
.../com/yfd/platform/config/WebConfig.java | 8 +++++
.../controller/AlgorithmLogsController.java | 5 +--
.../algorithm/mapper/AlgorithmLogsMapper.java | 3 +-
.../service/IAlgorithmLogsService.java | 3 +-
.../impl/AlgorithmLogsServiceImpl.java | 5 +--
.../SubstationMaindeviceController.java | 26 ++++++++++++++--
.../basedata/domain/SubstationMaindevice.java | 16 ++++++++++
.../service/ISubstationMaindeviceService.java | 1 +
.../impl/SubstationMaindeviceServiceImpl.java | 31 ++++++++++++++-----
.../java/com/yfd/platform/utils/FileUtil.java | 11 +++++--
.../src/main/resources/application-dev.yml | 1 +
.../src/main/resources/application-prod.yml | 1 +
.../mapper/algorithm/AlgorithmLogsMapper.xml | 10 +++++-
15 files changed, 111 insertions(+), 22 deletions(-)
diff --git a/riis-system/src/main/java/com/yfd/platform/component/iec61850/client/IEC61850Service.java b/riis-system/src/main/java/com/yfd/platform/component/iec61850/client/IEC61850Service.java
index 170cdb7..3df84b8 100644
--- a/riis-system/src/main/java/com/yfd/platform/component/iec61850/client/IEC61850Service.java
+++ b/riis-system/src/main/java/com/yfd/platform/component/iec61850/client/IEC61850Service.java
@@ -128,9 +128,9 @@ public class IEC61850Service {
if (ObjUtil.isNotEmpty(deviceSignal)) {
//查找设备
MeterDevice meterDevice = meterDeviceService.getById(deviceSignal.getMeterDeviceId());
- QueryWrapper queryWrapper = new QueryWrapper<>();
+ LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>();
//通讯网关机的IP地址
- queryWrapper.eq("ip_addr", meterDevice.getNetdeviceIp());
+ queryWrapper.eq(GatewayDevice::getIpAddr, meterDevice.getNetdeviceIp());
//查找网关机
GatewayDevice gatewayDevice = gatewayDeviceService.getOne(queryWrapper);
String convalue = value;
diff --git a/riis-system/src/main/java/com/yfd/platform/config/HttpServerConfig.java b/riis-system/src/main/java/com/yfd/platform/config/HttpServerConfig.java
index 0d904ab..558cb31 100644
--- a/riis-system/src/main/java/com/yfd/platform/config/HttpServerConfig.java
+++ b/riis-system/src/main/java/com/yfd/platform/config/HttpServerConfig.java
@@ -111,6 +111,10 @@ public class HttpServerConfig {
@Value("${httpserver.patrolserver.documentpath}")
private String documentPath;
+ @Value("${httpserver.patrolserver.maindevicefilepath}")
+ private String mainDeviceFilepath;
+
+
@Value("${httpserver.patrolserver.tempfilepath}")
private String tempFilePath;
@@ -255,6 +259,10 @@ public class HttpServerConfig {
return documentPath;
}
+ public String getMainDeviceFilepath() {
+ return mainDeviceFilepath;
+ }
+
public String getTempFilePath() {
return tempFilePath;
}
diff --git a/riis-system/src/main/java/com/yfd/platform/config/WebConfig.java b/riis-system/src/main/java/com/yfd/platform/config/WebConfig.java
index 225e7bc..cc8d3a2 100644
--- a/riis-system/src/main/java/com/yfd/platform/config/WebConfig.java
+++ b/riis-system/src/main/java/com/yfd/platform/config/WebConfig.java
@@ -34,6 +34,10 @@ public class WebConfig implements WebMvcConfigurer {
@Value("${httpserver.patrolserver.alarmfilepath}")
private String alarmFilePath;
+ @Value("${httpserver.patrolserver.maindevicefilepath}")
+ private String mainDeviceFilepath;
+
+
@Resource
private ISubstationDeviceService substationDeviceService;
@@ -94,6 +98,10 @@ public class WebConfig implements WebMvcConfigurer {
// 告警图片
String alarmUrl = "file:" + alarmFilePath;
registry.addResourceHandler("/alarm/**").addResourceLocations(alarmUrl).setCachePeriod(0);
+
+ // 告警图片
+ String mainDeviceUrl = "file:" + mainDeviceFilepath;
+ registry.addResourceHandler("/mainDevice/**").addResourceLocations(mainDeviceUrl).setCachePeriod(0);
}
}
diff --git a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmLogsController.java b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmLogsController.java
index 8fbb4c0..149bc09 100644
--- a/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmLogsController.java
+++ b/riis-system/src/main/java/com/yfd/platform/modules/algorithm/controller/AlgorithmLogsController.java
@@ -36,10 +36,11 @@ public class AlgorithmLogsController {
@GetMapping("/getAlgorithmLogsPage")
@ApiOperation("分页查询算法分析日志")
public ResponseResult getAlgorithmLogsPage(String stationCode, String algorithmId, String areaId, String bayId,
- String mainDeviceId, String componentId, String componentName,
+ String mainDeviceId, String componentId, String componentName,String startDate,
+ String endDate,
Page page) {
Page
*
- *
* @since 2023-03-28
*/
@Transactional
@@ -68,6 +68,9 @@ public class SubstationMaindeviceServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>();
-// queryWrapper.eq(SubstationComponent::getMainDeviceId, id);
-// substationComponentMapper.delete(queryWrapper);
+ // LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>();
+ // queryWrapper.eq(SubstationComponent::getMainDeviceId, id);
+ // substationComponentMapper.delete(queryWrapper);
boolean ok = this.removeById(id);
String bayId = substationMaindevice.getBayId();
List list =
@@ -737,6 +740,18 @@ public class SubstationMaindeviceServiceImpl extends ServiceImpl