luobang преди 1 година
родител
ревизия
389fa7f3c7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/steerinfo/dil/controller/OffSiteTransportationController.java

+ 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);