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