|
@@ -99,9 +99,9 @@ public class OffSiteTransportationController extends BaseRESTfulController {
|
|
public RESTfulResult fullPath(String orderNumber) throws Exception {
|
|
public RESTfulResult fullPath(String orderNumber) throws Exception {
|
|
//运输订单号:orderNumber、车牌号:capacityNumber、出厂时间:resultOutGateTime、预警开关:turnOf、发货地址:shipperName、收货地址:receiveAddress
|
|
//运输订单号:orderNumber、车牌号:capacityNumber、出厂时间:resultOutGateTime、预警开关:turnOf、发货地址:shipperName、收货地址:receiveAddress
|
|
//初始化请求参数
|
|
//初始化请求参数
|
|
- //判断是否自提
|
|
|
|
- int count = offSiteTransportationService.isSelfMentionByOrderNumber(orderNumber);
|
|
|
|
- if (count==0){
|
|
|
|
|
|
+ //判断订单是否可以查看路径
|
|
|
|
+ int watch = offSiteTransportationService.checkOrder(orderNumber);
|
|
|
|
+ if (watch==1){
|
|
HashMap<String,Object> mapValue=new HashMap<>();
|
|
HashMap<String,Object> mapValue=new HashMap<>();
|
|
mapValue.put("orderNumber",orderNumber);
|
|
mapValue.put("orderNumber",orderNumber);
|
|
return success(routeService.fullPathVisualization(mapValue).get());
|
|
return success(routeService.fullPathVisualization(mapValue).get());
|
|
@@ -475,14 +475,13 @@ public class OffSiteTransportationController extends BaseRESTfulController {
|
|
public RESTfulResult fullPathVisualizationByCarNumber(@RequestBody HashMap mapValue) throws Exception {
|
|
public RESTfulResult fullPathVisualizationByCarNumber(@RequestBody HashMap mapValue) throws Exception {
|
|
|
|
|
|
//判断是否自提
|
|
//判断是否自提
|
|
- int count = offSiteTransportationService.isSelfMention(mapValue.get("capacityNumber").toString());
|
|
|
|
- if (count==0){
|
|
|
|
|
|
+ /*int count = offSiteTransportationService.isSelfMention(mapValue.get("capacityNumber").toString());
|
|
|
|
+ if (count==0){*/
|
|
CompletableFuture<RouteVo> createOrder =routeService.fullPathVisualizationByCarNumber(mapValue);
|
|
CompletableFuture<RouteVo> createOrder =routeService.fullPathVisualizationByCarNumber(mapValue);
|
|
-
|
|
|
|
return success(createOrder.get());
|
|
return success(createOrder.get());
|
|
- }else {
|
|
|
|
|
|
+ /* }else {
|
|
return failed(-1);
|
|
return failed(-1);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -524,17 +523,8 @@ public class OffSiteTransportationController extends BaseRESTfulController {
|
|
}
|
|
}
|
|
@GetMapping("/getCurrentLocation")
|
|
@GetMapping("/getCurrentLocation")
|
|
public RESTfulResult getCurrentLocation(@RequestParam("capcityNumber") String capcityNumber) throws Exception {
|
|
public RESTfulResult getCurrentLocation(@RequestParam("capcityNumber") String capcityNumber) throws Exception {
|
|
- //自提 且 运输订单未关闭的,不能查看
|
|
|
|
- int isSelfMention = offSiteTransportationService.isSelfMention(capcityNumber);//是否自提,0为非自提
|
|
|
|
- int isClose=offSiteTransportationService.isCloseOrder(capcityNumber);//是否关闭,0为未关闭
|
|
|
|
- if (isSelfMention!=0 && isClose==0){
|
|
|
|
- return failed(-1);
|
|
|
|
- }else {
|
|
|
|
CurrentLocationResult currentLocationResult = routeService.getCurrentLocation(capcityNumber);
|
|
CurrentLocationResult currentLocationResult = routeService.getCurrentLocation(capcityNumber);
|
|
return success(currentLocationResult);
|
|
return success(currentLocationResult);
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
//在途订单列表
|
|
//在途订单列表
|
|
@PostMapping("/transportationPerformance")
|
|
@PostMapping("/transportationPerformance")
|