guoyong 4 роки тому
батько
коміт
c2ea6bf76a

+ 1 - 2
src/main/java/com/aoyang/tms/service/impl/CommonServiceImpl.java

@@ -172,11 +172,10 @@ public class CommonServiceImpl implements CommonService {
             }
         }
         //位置信息
-        LocationVO locationVO = getLocationByDate(truckId, LocalDateTime.now());
+        LocationVO locationVO = getLocation(truckId);
         if (locationVO != null) {
             workerInfo.setLatitude(locationVO.getLatitude());
             workerInfo.setLongitude(locationVO.getLongitude());
-            workerInfo.setLocalTime(locationVO.getDate());
             workerInfo.setLastTime(locationVO.getDate()+"");
         }