luobang hace 1 año
padre
commit
389fa7f3c7

+ 1 - 1
src/main/java/com/steerinfo/dil/controller/OffSiteTransportationController.java

@@ -528,7 +528,7 @@ public class OffSiteTransportationController extends BaseRESTfulController {
     @GetMapping("/getCurrentLocation")
     public RESTfulResult getCurrentLocation(@RequestParam("capcityNumber") String capcityNumber) throws Exception {
            CurrentLocationResult currentLocationResult = routeService.getCurrentLocation(capcityNumber);
-           if(currentLocationResult!=null){
+           if(currentLocationResult!=null && currentLocationResult.getStatus() != null){
                currentLocationResult.setStatusStr();
            }
            return success(currentLocationResult);