|
@@ -305,6 +305,8 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
|
|
|
if(noCarWayBill1 == null || noCarWayBill1.getBillwayStatus() !=1 || noCarWayBill1.getHisFlag() ==1 ){
|
|
|
log.info("运单结束失败:NoCarServiceImpl.noCarWaybillEnd{},msg{}",noCarWayBill,"当前运单状态无法结束,请检查当前指令状态");
|
|
|
+ noCarWayBill.setFailReason("当前运单状态无法结束,请检查当前指令状态");
|
|
|
+ noCarWaybillMapper.updateByBillNumTimeRes(noCarWayBill);
|
|
|
return new RespR(false,"当前运单状态无法结束,请检查当前指令状态");
|
|
|
}
|
|
|
noCarWayBill1.setDestAddr(noCarWayBill.getDestAddr());
|
|
@@ -313,7 +315,7 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
if((DateUtil.getDistanceHours(noCarWayBill1.getStartTime(),DateUtil.StringToDate(noCarWayBill1.getPredictEndTime()))<-96) && (noCarWayBill.getInterType() != 0)){
|
|
|
//noCarWayBill1.setBillwayStatus(4);
|
|
|
noCarWayBill1.setFailReason("失败,承运时长超96小时");
|
|
|
- noCarWaybillMapper.updateByBillNum(noCarWayBill1);
|
|
|
+ noCarWaybillMapper.updateByBillNumTimeRes(noCarWayBill);
|
|
|
log.info("运单结束失败:NoCarServiceImpl.noCarWaybillEnd{},msg{}",noCarWayBill,"运单已经超时,请拆分");
|
|
|
return new RespR(false,"失败,承运时长超96小时");
|
|
|
}
|
|
@@ -412,12 +414,16 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
NoCarWayBill noCarWayBill1 = noCarWaybillMapper.selectByBillNum(noCarWayBill.getBillNum());
|
|
|
if(noCarWayBill1 == null || noCarWayBill1.getBillwayStatus() !=1 || noCarWayBill.getHisFlag() ==0 || noCarWayBill1.getBillwayStatus() == -3 ){
|
|
|
log.info("运单结束失败:NoCarServiceImpl.noCarWaybillEnd{},msg{}",noCarWayBill,"当前运单状态无法结束,请检查当前指令状态");
|
|
|
+ noCarWayBill.setFailReason("当前运单状态无法结束,请检查当前指令状态");
|
|
|
+ noCarWaybillMapper.updateByBillNumTimeRes(noCarWayBill);
|
|
|
return new RespR(false,"当前运单状态无法结束,请检查当前指令状态");
|
|
|
}
|
|
|
noCarWayBill1.setDestAddr(noCarWayBill.getDestAddr());
|
|
|
noCarWayBill1.setPredictEndTime(noCarWayBill.getPredictEndTime());
|
|
|
if((DateUtil.getDistanceHours(noCarWayBill.getStartTime(),DateUtil.StringToDate(noCarWayBill.getPredictEndTime()))<-96) && (noCarWayBill.getInterType() != 0)){
|
|
|
log.info("历史运单结束上传失败:NoCarServiceImpl.noCarHisWaybillEnd{},msg{}",noCarWayBill,"运单已经超时,请拆分");
|
|
|
+ noCarWayBill.setFailReason("失败,承运时长超96小时");
|
|
|
+ noCarWaybillMapper.updateByBillNumTimeRes(noCarWayBill);
|
|
|
return new RespR(false,"失败,承运时长超96小时");
|
|
|
}
|
|
|
WaybillEndRequest waybillEndRequest = new WaybillEndRequest();
|
|
@@ -533,18 +539,13 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
}
|
|
|
billInvoiceMapper.insert(billInvoice);
|
|
|
});
|
|
|
- List<BillInvoice> billInvoices1 = billInvoiceMapper.selectByBillNum(noCarWayBill.getBillNum());
|
|
|
- if(billInvoices1!=null && billInvoices1.size()>0 && noCarWayBill.getInterType() != 0){
|
|
|
-
|
|
|
- return new RespR(billInvoices1);
|
|
|
- }else if(billInvoices1!=null && billInvoices1.size()>0 && noCarWayBill.getInterType() == 0){
|
|
|
+ if(noCarWayBill.getInterType() == 0){
|
|
|
return new RespR(responseRespR.getData());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- //查询
|
|
|
- return new RespR(false,responseRespR.getData());
|
|
|
+ return new RespR("success");
|
|
|
}
|
|
|
public BillInvoice buildFromInvoiceProcessingListModel(InvoiceProcessingListModel invoiceProcessingListModel){
|
|
|
BillInvoice billInvoice = new BillInvoice();
|