jinpengyong
2021-09-14 1ab0b018c6d0b5a12b5310ae23f37cb9e5a2887b
update
1 files modified
7 ■■■■■ changed files
screen-manage/src/main/java/com/moral/api/service/impl/DeviceServiceImpl.java 7 ●●●●● patch | view | raw | blame | history
screen-manage/src/main/java/com/moral/api/service/impl/DeviceServiceImpl.java
@@ -394,14 +394,13 @@
        //国控站点
        Map<String, Object> govMpInfo = new LinkedHashMap<>();
        govMpInfo.put("guid", null);
        govMpInfo.put("name", null);
        if (device.getGovMonitorPoint() != null) {
        GovMonitorPoint govMonitorPoint = device.getGovMonitorPoint();
        if (govMonitorPoint != null) {
            govMpInfo.put("guid", device.getGovMonitorPoint().getGuid());
            govMpInfo.put("name", device.getGovMonitorPoint().getName());
        }
        deviceInfo.put("govMonitorPoint", govMpInfo);
        setDeviceInfoToRedis(mac, deviceInfo);
        return deviceInfo;
    }