소스 검색

地址增加经纬度单位

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(";");