diff --git a/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java b/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java index 45a5516..4e967b4 100644 --- a/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java +++ b/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java @@ -127,9 +127,9 @@ public class TrafficSecurityWaybillRegistrationController extends BaseController Date shippingDate = DateUtil.fomatDate(pd.getString("SHIPPINGDATE")); if (shippingDate != null && shippingDate.after(new Date())) { - pd.put("WAYBILLSTATUS", "1"); - } else { pd.put("WAYBILLSTATUS", "3"); + } else { + pd.put("WAYBILLSTATUS", "1"); } trafficSecurityWaybillRegistrationService.save(pd); @@ -284,6 +284,12 @@ public class TrafficSecurityWaybillRegistrationController extends BaseController if(!ObjectUtil.isEmpty(vehicle)) { pd.put("TRANSPORTVEHICLE", vehicle.getString("OPERATING_ID")); } + Date shippingDate = DateUtil.fomatDate(pd.getString("SHIPPINGDATE")); + if (shippingDate != null && shippingDate.after(new Date())) { + pd.put("WAYBILLSTATUS", "3"); + } else { + pd.put("WAYBILLSTATUS", "1"); + } trafficSecurityWaybillRegistrationService.edit(pd); map.put("result", errInfo); diff --git a/src/main/java/com/zcloud/controller/system/AppUsersController.java b/src/main/java/com/zcloud/controller/system/AppUsersController.java index 6712162..3452e75 100644 --- a/src/main/java/com/zcloud/controller/system/AppUsersController.java +++ b/src/main/java/com/zcloud/controller/system/AppUsersController.java @@ -144,7 +144,7 @@ public class AppUsersController extends BaseController { PageData pd = new PageData(); pd = this.getPageData(); String errInfo = "success"; - pd.put("CORPINFO_ID", "13cf0f4ec77e4d98ae8cdd9c3386ae0c"); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); List byUserId = userCorpService.findByUserId(pd); map.put("pd", byUserId.get(0)); map.put("result", errInfo);