فهرست منبع

打卡上报增加经纬度

peiguo 4 سال پیش
والد
کامیت
093145ebeb

+ 1 - 1
whepi-ui/templates/home/ribao.js

@@ -1585,7 +1585,7 @@ function ribaoCommit() {
     "isTrip": isTrip,
     "tripDet": listcx,
     "longitude": longitude,
-    "latitude": longitude,
+    "latitude": latitude,
   };
 
   //loading

+ 2 - 0
whepi-ui/templates/lingyun/ribao.js

@@ -999,6 +999,8 @@ function ribaoCommit() {
       "todayLocalOther": todyLocalOther,
       "isTrip": isTrip,
       "tripDet": listcx,
+      "longitude": longitude,
+      "latitude": latitude,
     };
 
     $.ajax({

+ 3 - 1
whepi-web/src/main/java/com/bofeng/service/MsSuspectedService.java

@@ -263,7 +263,7 @@ public class MsSuspectedService {
 
     //更新今日日报
     @Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
-    public void updateReport(Long reportId, Integer medical, Integer singleRoom, BigDecimal temperature) {
+    public void updateReport(Long reportId, Integer medical, Integer singleRoom, BigDecimal temperature, String longitude, String latitude) {
         //更新今日日报
         Integer trueNum = 0, singleNum = 0, isSuspected = 0, isNoSuspected = 0, isFamliy = 0, abnormalNum = 0;
 
@@ -293,6 +293,8 @@ public class MsSuspectedService {
             msReport.setSuspectedNum(isNoSuspected);
             msReport.setNormalNum(isSuspected);
             msReport.setSafetyNum(isFamliy);
+            msReport.setLongitude(longitude);
+            msReport.setLatitude(latitude);
             if (isNoSuspected > 0 || abnormalNum > 0)
                 msReport.setMsStatus(2);
             else

+ 1 - 1
whepi-web/src/main/java/com/bofeng/service/MsTripService.java

@@ -194,7 +194,7 @@ public class MsTripService {
                 }
             }
             //更新今日日报,直接上报
-            msSuspectedService.updateReport(reportId, medical, singleRoom, temperature);
+            msSuspectedService.updateReport(reportId, medical, singleRoom, temperature, longitude, latitude);
 
         } else {
             //判断家人是否同名