Przeglądaj źródła

人员维保与电梯最大距离改为一千米

yang 4 lat temu
rodzic
commit
968f2b77aa

+ 2 - 2
lift-business-service/src/main/java/cn/com/ty/lift/business/maintenance/service/MaintenanceRecordService.java

@@ -140,7 +140,7 @@ public class MaintenanceRecordService extends ServiceImpl<MaintenanceRecordMappe
      * @date 2020/1/13 11:30 上午
      */
     public boolean calc(String liftCoordinate, String coordinate) {
-        double expected = 1500;
+        double expected = 1000;
         double result = MapHelper.GetPointDistance(liftCoordinate, coordinate);
         return (result * 1000) > expected;
     }
@@ -241,7 +241,7 @@ public class MaintenanceRecordService extends ServiceImpl<MaintenanceRecordMappe
         } else {
             boolean result = calc(liftCoordinate, coordinate);
             if (result) {
-                log.info("用户签到位置大于1.5千米");
+                log.info("用户签到位置大于1千米");
                 return RestResponse.fail(MessageUtils.get("msg.error.person.scope"));
             }
         }