From 5750356e4344aad51b6d442d507af3f7c95c17fe Mon Sep 17 00:00:00 2001 From: xs Date: Thu, 29 Aug 2024 18:28:15 +0800 Subject: [PATCH] =?UTF-8?q?2.9.9=20EMS:=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hw/ems/base/controller/SysConfigController.java | 9 ++++++++- .../base/service/impl/BaseLineMonitorServiceImpl.java | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/hw-modules/hw-ems/src/main/java/com/hw/ems/base/controller/SysConfigController.java b/hw-modules/hw-ems/src/main/java/com/hw/ems/base/controller/SysConfigController.java index a7bf997..091b9a6 100644 --- a/hw-modules/hw-ems/src/main/java/com/hw/ems/base/controller/SysConfigController.java +++ b/hw-modules/hw-ems/src/main/java/com/hw/ems/base/controller/SysConfigController.java @@ -115,6 +115,13 @@ public class SysConfigController extends BaseController { configService.resetConfigCache(); return success(); } + +/* + *//** + * 此方法无用 + * @param monitorIds + * @return + *//* @PostMapping("/editMeterReading") @ResponseBody public AjaxResult edit(@RequestParam(required = false) String monitorIds) @@ -125,5 +132,5 @@ public class SysConfigController extends BaseController { sysConfig.setUpdateTime(new Date()); sysConfig.setRemark(monitorIds); return toAjax(configService.updateConfig(sysConfig)); - } + }*/ } diff --git a/hw-modules/hw-ems/src/main/java/com/hw/ems/base/service/impl/BaseLineMonitorServiceImpl.java b/hw-modules/hw-ems/src/main/java/com/hw/ems/base/service/impl/BaseLineMonitorServiceImpl.java index 044b9e4..1675ad1 100644 --- a/hw-modules/hw-ems/src/main/java/com/hw/ems/base/service/impl/BaseLineMonitorServiceImpl.java +++ b/hw-modules/hw-ems/src/main/java/com/hw/ems/base/service/impl/BaseLineMonitorServiceImpl.java @@ -9,6 +9,8 @@ import com.hw.ems.base.domain.BaseLineMonitor; import com.hw.ems.base.mapper.BaseLineLossMapper; import com.hw.ems.base.mapper.BaseLineMonitorMapper; import com.hw.ems.base.service.IBaseLineMonitorService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -23,6 +25,8 @@ import java.util.stream.Collectors; */ @Service public class BaseLineMonitorServiceImpl implements IBaseLineMonitorService { + private static final Logger log = LoggerFactory.getLogger(BaseLineMonitorServiceImpl.class); + @Autowired private BaseLineMonitorMapper baseLineMonitorMapper; @@ -189,7 +193,7 @@ public class BaseLineMonitorServiceImpl implements IBaseLineMonitorService { .anyMatch(parent -> info.getObjid().equals(parent.getParentId()))) .collect(Collectors.toList()); } catch (Exception e) { - System.out.println("查询计量设备有子集的父级List异常:" + e.getMessage()); + log.error("查询计量设备有子集的父级List异常:" + e.getMessage()); } return result; }