|
@@ -178,14 +178,6 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
res.append("#客户:"+customer.getCustomerName()+"不存在或状态异常");
|
|
|
return new RespR(false,res.toString());
|
|
|
}
|
|
|
- /* CustomerRec customerRecP = new CustomerRec();
|
|
|
- customerRecP.setCustomerName(customerCarRec.getCustomerName());
|
|
|
- customerRecP.setCompanyName(customerCarRec.getCompanyName());
|
|
|
- CustomerRec customerRec = customerRecMapper.selectByCustomerNameAndCompany(customerRecP);
|
|
|
- if(customerRec == null){
|
|
|
- res.append("#客户:"+customerCarRec.getCustomerName()+"企业:"+customerCarRec.getCompanyName()+"备案信息不存在");
|
|
|
- return new RespR(false,res.toString());
|
|
|
- }*/
|
|
|
|
|
|
VehicleQueryRequest vehicleQueryRequest = new VehicleQueryRequest();
|
|
|
String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
@@ -240,10 +232,6 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
insertOrUpdateBillStart(noCarWayBill);
|
|
|
return new RespR(false,"失败,运单开始时间超72小时");
|
|
|
}
|
|
|
- /* if((DateUtil.getDistanceHours(noCarWayBill.getStartTime(),DateUtil.StringToDate(noCarWayBill.getPredictEndTime()))<-96) && (noCarWayBill.getInterType() != 0)){
|
|
|
- log.info("运单结束失败:NoCarServiceImpl.noCarWaybillStart{},msg{}",noCarWayBill,"运单已经超时,请拆分");
|
|
|
- return new RespR(false,"失败,承运时长超96小时");
|
|
|
- }*/
|
|
|
RespR respR = checkCarWayBillAndSetInfo(noCarWayBill);
|
|
|
if(respR.getCode() == 1){
|
|
|
log.info("运单上传失败:NoCarServiceImpl.noCarWaybillStart{},msg{}",noCarWayBill,respR.getMsg());
|
|
@@ -356,13 +344,6 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
noCarWayBillDb.setPredictEndTime(noCarWayBill.getPredictEndTime());
|
|
|
noCarWayBillDb.setBatchNumEnd(noCarWayBill.getBatchNumEnd());
|
|
|
noCarWayBillDb.setInterType(noCarWayBill.getInterType());
|
|
|
- /*if((DateUtil.getDistanceHours(noCarWayBill1.getStartTime(),DateUtil.StringToDate(noCarWayBill1.getPredictEndTime()))<-96) && (noCarWayBill.getInterType() != 0)){
|
|
|
- //noCarWayBill1.setBillwayStatus(4);
|
|
|
- noCarWayBill1.setFailReason("失败,承运时长超96小时");
|
|
|
- noCarWaybillMapper.updateByBillNumTimeRes(noCarWayBill);
|
|
|
- log.info("运单结束失败:NoCarServiceImpl.noCarWaybillEnd{},msg{}",noCarWayBill,"运单已经超时,请拆分");
|
|
|
- return new RespR(false,"失败,承运时长超96小时");
|
|
|
- }*/
|
|
|
|
|
|
WaybillEndRequest waybillEndRequest = new WaybillEndRequest();
|
|
|
String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
@@ -436,10 +417,6 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
insertOrUpdateBillStart(noCarWayBill);
|
|
|
return new RespR(false,"失败,运单未满20天时效");
|
|
|
}
|
|
|
- /* if((DateUtil.getDistanceHours(noCarWayBill.getStartTime(),DateUtil.StringToDate(noCarWayBill.getPredictEndTime()))<-96) && (noCarWayBill.getInterType() != 0)){
|
|
|
- log.info("历史运单开始上传失败:NoCarServiceImpl.noCarWaybillStart{},msg{}",noCarWayBill,"运单已经超时,请拆分");
|
|
|
- return new RespR(false,"失败,承运时长超96小时");
|
|
|
- }*/
|
|
|
|
|
|
RespR respR = checkCarWayBillAndSetInfo(noCarWayBill);
|
|
|
if(respR.getCode() == 1){
|
|
@@ -514,12 +491,6 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
noCarWayBillDb.setDestAddr(noCarWayBill.getDestAddr());
|
|
|
noCarWayBillDb.setPredictEndTime(noCarWayBill.getPredictEndTime());
|
|
|
noCarWayBillDb.setInterType(noCarWayBill.getInterType());
|
|
|
- /*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小时");
|
|
|
- }*/
|
|
|
WaybillHistoryEndRequest waybillEndRequest = new WaybillHistoryEndRequest();
|
|
|
String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
|
waybillEndRequest.setCompanyNum(companyNum);
|