ソースを参照

地址增加经纬度单位

lengfaqiang 2 年 前
コミット
e4905275a6

+ 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("");
                 vo.setPhone("");
                 StringBuilder location = new StringBuilder();
                 StringBuilder location = new StringBuilder();
                 if (StringUtils.isNotBlank(kwsDevice.getLogicLng())) {
                 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())) {
                 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())) {
                 if (StringUtils.isNotBlank(kwsDevice.getLogicAlt())) {
                     location.append(kwsDevice.getLogicAlt()).append(";");
                     location.append(kwsDevice.getLogicAlt()).append(";");