diff --git a/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java b/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java index be0121e..f9128d4 100644 --- a/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java +++ b/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java @@ -104,6 +104,10 @@ public class TrafficSecurityWaybillRegistrationController extends BaseController pd.put("CREATETIME", DateUtil.date2Str(new Date())); // 添加时间 pd.put("ISDELETE", "0"); + if("".equals(pd.getString("TRUCKCART")) || "undefinedpd".equals(pd.getString("TRUCKCART")) || StringUtils.isEmpty(pd.getString("TRUCKCART"))) { + pd.put("TRUCKCART",""); + } + Date shippingDate = DateUtil.fomatDate(pd.getString("SHIPPINGDATE")); if (shippingDate != null && shippingDate.after(new Date())) { pd.put("WAYBILLSTATUS", "1"); @@ -177,6 +181,9 @@ public class TrafficSecurityWaybillRegistrationController extends BaseController PageData pd = new PageData(); pd = this.getPageData(); pd = trafficSecurityWaybillRegistrationService.findById(pd);//根据ID读 + if("".equals(pd.getString("TRUCKCART")) || "undefined".equals(pd.getString("TRUCKCART")) || StringUtils.isEmpty(pd.getString("TRUCKCART"))) { + pd.put("TRUCKCART",""); + } String[] dispatchers = pd.getString("DISPATCHER").split(","); List names = new ArrayList<>(); for (String dispatcher : dispatchers) {