Преглед на файлове

地址增加经纬度单位

lengfaqiang преди 2 години
родител
ревизия
e4905275a6
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      slope-modules/slope-detection/src/main/java/com/sckw/slope/detection/service/KwsAlarmService.java

+ 4 - 2
slope-modules/slope-detection/src/main/java/com/sckw/slope/detection/service/KwsAlarmService.java

@@ -417,10 +417,12 @@ public class KwsAlarmService {
                 vo.setPhone("");
                 StringBuilder location = new StringBuilder();
                 if (StringUtils.isNotBlank(kwsDevice.getLogicLng())) {
-                    location.append(kwsDevice.getLogicLng()).append(";");
+                    String remark = dictByDictCode.get(DictItemEnum.LONGITUDE_X.getValue()).getRemark();
+                    location.append(kwsDevice.getLogicLng()).append(remark).append(";");
                 }
                 if (StringUtils.isNotBlank(kwsDevice.getLogicLat())) {
-                    location.append(kwsDevice.getLogicLat()).append(";");
+                    String remark = dictByDictCode.get(DictItemEnum.LATITUDE_Y.getValue()).getRemark();
+                    location.append(kwsDevice.getLogicLat()).append(remark).append(";");
                 }
                 if (StringUtils.isNotBlank(kwsDevice.getLogicAlt())) {
                     location.append(kwsDevice.getLogicAlt()).append(";");