Quellcode durchsuchen

上次更新时间

guoyong vor 4 Jahren
Ursprung
Commit
c2ea6bf76a
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      src/main/java/com/aoyang/tms/service/impl/CommonServiceImpl.java

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