|
@@ -192,8 +192,24 @@ public class OffSiteTransportationServiceImpl implements OffSiteTransportationSe
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public int isCloseOrder(String capcityNumber) {
|
|
|
- return offSiteTransportationMapper.selectIsCloseOrder(capcityNumber);
|
|
|
+ public int isClose(String capcityNumber) {
|
|
|
+ return offSiteTransportationMapper.selectIsClose(capcityNumber);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int isCloseByOrderNumber(String orderNumber) {
|
|
|
+ return offSiteTransportationMapper.selectIsCloseByOrderNumber(orderNumber);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int checkOrder(String orderNumber) {
|
|
|
+ //自提 且 运输订单未关闭,不能查看,返回0;能查看则返回1
|
|
|
+ int isSelfMention = offSiteTransportationMapper.isSelfMentionByOrderNumber(orderNumber);//是否自提,0为非自提
|
|
|
+ int isClose=offSiteTransportationMapper.selectIsCloseByOrderNumber(orderNumber);//是否关闭,0为未关闭
|
|
|
+ if(isSelfMention!=0 && isClose==0)
|
|
|
+ return 0;
|
|
|
+ else
|
|
|
+ return 1;
|
|
|
}
|
|
|
|
|
|
public synchronized int addTransportationAlarm(TmstruckAbnormalResult tmstruckAbnormalResult, String tripId) {
|
|
@@ -223,16 +239,6 @@ public class OffSiteTransportationServiceImpl implements OffSiteTransportationSe
|
|
|
Map<String, Object> parem=offSiteTransportationMapper.getTruckFactoryResult("WYSDD2021091000000002");
|
|
|
parem.put("turnOf","0");
|
|
|
return routeService.saveRoute(parem).toString();
|
|
|
- //运输订单号:orderNumber、车牌号:capacityNumber、出厂时间:resultOutGateTime、预警开关:turnOf、发货地址:shipperName、收货地址:receiveAddress
|
|
|
- //初始化请求参数
|
|
|
-// HashMap<String,Object> mapValue=new HashMap<>();
|
|
|
-// mapValue.put("orderNumber","WYSDD2021091000000001");
|
|
|
-// mapValue.put("capacityNumber","豫SB6238");
|
|
|
-// mapValue.put("resultOutGateTime","2021-11-17 14:20:19");
|
|
|
-// mapValue.put("turnOf","0");
|
|
|
-// mapValue.put("shipperName","四川达州钢铁集团有限");
|
|
|
-// mapValue.put("receiveAddress","长沙市");
|
|
|
-// return routeService.saveRoute(parem).toString();
|
|
|
}
|
|
|
|
|
|
public Integer addTmstruckReceiptResult(@RequestBody(required = false) Map<String,Object> map){
|