|
@@ -524,14 +524,15 @@ public class OffSiteTransportationController extends BaseRESTfulController {
|
|
|
}
|
|
|
@GetMapping("/getCurrentLocation")
|
|
|
public RESTfulResult getCurrentLocation(@RequestParam("capcityNumber") String capcityNumber) throws Exception {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- CurrentLocationResult currentLocationResult = routeService.getCurrentLocation(capcityNumber);
|
|
|
- return success(currentLocationResult);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ int isSelfMention = offSiteTransportationService.isSelfMention(capcityNumber);
|
|
|
+ int isClose=offSiteTransportationService.isCloseOrder(capcityNumber);
|
|
|
+ if (isSelfMention!=0 && isClose==0){
|
|
|
+ return failed(-1);
|
|
|
+ }else {
|
|
|
+ CurrentLocationResult currentLocationResult = routeService.getCurrentLocation(capcityNumber);
|
|
|
+ return success(currentLocationResult);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|