From f62ce761a5c2dd1f281acbf72a66fd752af3d75d Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Fri, 23 Jul 2021 14:19:51 +0800 Subject: [PATCH] 设备状态判断更新 --- screen-api/src/main/java/com/moral/api/service/impl/MonitorPointServiceImpl.java | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/screen-api/src/main/java/com/moral/api/service/impl/MonitorPointServiceImpl.java b/screen-api/src/main/java/com/moral/api/service/impl/MonitorPointServiceImpl.java index 1b54467..9c85cc5 100644 --- a/screen-api/src/main/java/com/moral/api/service/impl/MonitorPointServiceImpl.java +++ b/screen-api/src/main/java/com/moral/api/service/impl/MonitorPointServiceImpl.java @@ -37,7 +37,7 @@ DeviceService deviceService; @Override - public List<MonitorPoint> query(MonitorPointQueryForm form) { + public List<MonitorPoint> queryByOrgIdAndRegionCode(MonitorPointQueryForm form) { //������ Integer organizationId = form.getOrganizationId(); Integer regionCode = form.getRegionCode(); @@ -62,6 +62,18 @@ } return monitorPoints; } + + @Override + public List<MonitorPoint> queryStateControlStationByRegionCode(Integer regionCode) { + //��������������������� + Organization stateControlStationOrganization = organizationService.getStateControlStation(); + //��������������������������������������� + QueryWrapper<MonitorPoint> queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("is_delete",Constants.NOT_DELETE); + queryWrapper.eq("organization_id",stateControlStationOrganization.getId()); + queryWrapper.eq(RegionCodeUtils.regionCodeConvertToName(regionCode),regionCode); + return monitorPointMapper.selectList(queryWrapper); + } } -- Gitblit v1.8.0