|
@@ -271,6 +271,16 @@ public class NoCarInterServiceImpl implements NoCarInterService {
|
|
|
result.setMsg("必传参数有空值");
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+ if(!DateUtil.isValidDate(startTime)){
|
|
|
+ result.setMsg("日期格式有误");
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ if(!DateUtil.isValidDate(predictEndTime)){
|
|
|
+ result.setMsg("日期格式有误");
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
|
customerRec.setCustomerName(appKey);
|
|
|
customerRec.setCompanyReferencenum(taxplayerCode);
|
|
@@ -380,6 +390,13 @@ public class NoCarInterServiceImpl implements NoCarInterService {
|
|
|
result.setMsg("必传参数有空值");
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+ if(!DateUtil.isValidDate(endTime)){
|
|
|
+ result.setMsg("日期格式有误");
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
NoCarWayBill noCarWayBill = new NoCarWayBill();
|
|
|
noCarWayBill.setCustomerName(appKey);
|
|
|
noCarWayBill.setBillNum(num);
|
|
@@ -462,6 +479,17 @@ public class NoCarInterServiceImpl implements NoCarInterService {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ if(!DateUtil.isValidDate(startTime)){
|
|
|
+ result.setMsg("日期格式有误");
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!DateUtil.isValidDate(predictEndTime)){
|
|
|
+ result.setMsg("日期格式有误");
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
|
customerRec.setCustomerName(appKey);
|
|
|
customerRec.setCompanyReferencenum(taxplayerCode);
|
|
@@ -584,6 +612,15 @@ public class NoCarInterServiceImpl implements NoCarInterService {
|
|
|
result.setMsg("有空的必填运单要素,请检查");
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(!DateUtil.isValidDate(endTime)){
|
|
|
+ result.setMsg("日期格式有误");
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
NoCarWayBill noCarWayBill = new NoCarWayBill();
|
|
|
noCarWayBill.setBillNum(num);
|
|
|
noCarWayBill.setDestAddr(realDestAddr);
|