|  |  |  | 
|---|
|  |  |  | import com.moral.api.service.DeviceService; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.moral.api.service.GovMonitorPointService; | 
|---|
|  |  |  | import com.moral.api.service.SysDictDataService; | 
|---|
|  |  |  | import com.moral.api.util.CacheUtils; | 
|---|
|  |  |  | import com.moral.api.util.AdjustDataUtils; | 
|---|
|  |  |  | 
|---|
|  |  |  | mpInfo.put("provinceCode", monitorPoint.getProvinceCode()); | 
|---|
|  |  |  | deviceInfo.put("monitorPoint", mpInfo); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //国控站点 | 
|---|
|  |  |  | Map<String, Object> govMpInfo = new LinkedHashMap<>(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | govMpInfo.put("guid", null); | 
|---|
|  |  |  | govMpInfo.put("name", null); | 
|---|
|  |  |  | if (device.getGovMonitorPoint() != null) { | 
|---|
|  |  |  | govMpInfo.put("guid", device.getGovMonitorPoint().getGuid()); | 
|---|
|  |  |  | govMpInfo.put("name", device.getGovMonitorPoint().getName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | deviceInfo.put("govMonitorPoint", govMpInfo); | 
|---|
|  |  |  | setDeviceInfoToRedis(mac, deviceInfo); | 
|---|
|  |  |  | return deviceInfo; | 
|---|
|  |  |  | } | 
|---|