From eb8c8d012991a523a4d73ec257c6ac2f1ffce7da Mon Sep 17 00:00:00 2001 From: WenShiJun Date: Fri, 22 Mar 2024 14:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E5=8D=95=E7=99=BB=E8=AE=B0=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=BC=98=E5=8C=96=20=E5=9C=B0=E7=82=B9=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=BC=98=E5=8C=96=20=E5=AE=A2=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TrafficSafetyMeetingController.java | 16 ++- ...cSecurityCustomerManagementController.java | 3 + ...cSecurityLocationManagementController.java | 2 + ...SecurityWaybillRegistrationController.java | 7 +- .../com/zcloud/util/InitPageDataUtil.java | 2 +- .../TrafficSecurityCustomerContactMapper.xml | 6 + ...rafficSecurityCustomerManagementMapper.xml | 7 +- ...rafficSecurityLocationManagementMapper.xml | 6 + ...afficSecurityWaybillRegistrationMapper.xml | 10 +- .../inspectAnnually/InspectAnnuallyMapper.xml | 105 ++++++++------- .../operations/OperationsMapper.xml | 123 +++++++++++------- 11 files changed, 177 insertions(+), 110 deletions(-) diff --git a/src/main/java/com/zcloud/controller/comprehensive/TrafficSafetyMeetingController.java b/src/main/java/com/zcloud/controller/comprehensive/TrafficSafetyMeetingController.java index 314a0a5..7b5a785 100644 --- a/src/main/java/com/zcloud/controller/comprehensive/TrafficSafetyMeetingController.java +++ b/src/main/java/com/zcloud/controller/comprehensive/TrafficSafetyMeetingController.java @@ -127,10 +127,18 @@ public class TrafficSafetyMeetingController extends BaseController { if (start != null && end != null){ Date startDate = DateUtil.fomatDate(start); Date endDate = DateUtil.fomatDate(end); - if (date.after(startDate) && date.before(endDate)){ - item.put("MEETING_STATUS",1); - }else if (date.after(endDate)){ - item.put("MEETING_STATUS",0); + + // 如果当前时间还没到startDate + if (date.before(startDate)) { + item.put("MEETING_STATUS", "0"); + } + // 如果当前时间已经超过startDate且还没到endDate + else if (date.after(startDate) && date.before(endDate)) { + item.put("MEETING_STATUS", "1"); + } + // 如果当前时间超过endDate + else if (date.after(endDate)) { + item.put("MEETING_STATUS", "2"); } String meetingDate = start + "至" + end; item.put("MEETING_DATE", meetingDate); diff --git a/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityCustomerManagementController.java b/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityCustomerManagementController.java index 69a2506..08d1528 100644 --- a/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityCustomerManagementController.java +++ b/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityCustomerManagementController.java @@ -39,6 +39,7 @@ public class TrafficSecurityCustomerManagementController extends BaseController String customermanagement_id = this.get32UUID(); // 生成主键ID pd.put("CUSTOMERMANAGEMENT_ID", customermanagement_id); // 设置客户管理ID + pd.put("CUSTOMERNAME_ID", this.get32UUID()); pd.put("TRANSPORTATIONCOMPANY", Jurisdiction.getCORPINFO_ID()); // 设置运输公司ID pd.put("CREATOR", Jurisdiction.getUSER_ID()); // 设置创建人ID pd.put("CREATORNAME", Jurisdiction.getName()); // 设置创建人姓名 @@ -52,6 +53,8 @@ public class TrafficSecurityCustomerManagementController extends BaseController for (PageData contact : contacts) { PageData contactPd = new PageData(); contactPd.put("CUSTOMERCONTACT_ID", this.get32UUID()); + contactPd.put("CONTACT_ID", this.get32UUID()); + contactPd.put("CUSTOMERADDRESS_ID", this.get32UUID()); contactPd.put("CUSTOMERMANAGEMENT_ID", customermanagement_id); contactPd.put("CREATOR", Jurisdiction.getUSER_ID()); // 设置创建人ID contactPd.put("CREATORNAME", Jurisdiction.getName()); // 设置创建人姓名 diff --git a/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityLocationManagementController.java b/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityLocationManagementController.java index 360b434..9a6e888 100644 --- a/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityLocationManagementController.java +++ b/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityLocationManagementController.java @@ -38,6 +38,8 @@ public class TrafficSecurityLocationManagementController extends BaseController pd.put("CREATOR", Jurisdiction.getUSER_ID()); // 创建人id pd.put("CREATORNAME", Jurisdiction.getName()); // 创建人姓名 pd.put("LOCATIONMANAGEMENT_ID", locationmanagement_id); // 主键 + pd.put("LOCATIONNAME_ID", this.get32UUID()); + pd.put("ADDRESSDETAILS_ID", this.get32UUID()); pd.put("CREATETIME", DateUtil.date2Str(new Date())); // 添加时间 pd.put("ISDELETE", "0"); diff --git a/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java b/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java index 0957d1d..ce00996 100644 --- a/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java +++ b/src/main/java/com/zcloud/controller/comprehensive/TrafficSecurityWaybillRegistrationController.java @@ -4,10 +4,7 @@ import com.zcloud.controller.base.BaseController; import com.zcloud.entity.Page; import com.zcloud.entity.PageData; import com.zcloud.service.comprehensive.TrafficSecurityWaybillRegistrationService; -import com.zcloud.util.Const; -import com.zcloud.util.DateUtil; -import com.zcloud.util.Jurisdiction; -import com.zcloud.util.Tools; +import com.zcloud.util.*; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -16,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.multipart.MultipartFile; +import javax.annotation.Resource; import java.util.Date; import java.util.HashMap; import java.util.List; @@ -82,6 +80,7 @@ public class TrafficSecurityWaybillRegistrationController extends BaseController pd.put("WAYBILLREGISTRATION_ID", waybillregistrationId); // 主键 pd.put("CREATETIME", DateUtil.date2Str(new Date())); // 添加时间 pd.put("ISDELETE", "0"); + Date shippingDate = DateUtil.fomatDate(pd.getString("SHIPPINGDATE")); if (shippingDate != null && shippingDate.after(new Date())) { pd.put("WAYBILLSTATUS", "1"); diff --git a/src/main/java/com/zcloud/util/InitPageDataUtil.java b/src/main/java/com/zcloud/util/InitPageDataUtil.java index d6a2f92..e02564f 100644 --- a/src/main/java/com/zcloud/util/InitPageDataUtil.java +++ b/src/main/java/com/zcloud/util/InitPageDataUtil.java @@ -32,7 +32,7 @@ public class InitPageDataUtil { pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人 pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间 pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) - pd.put(PRIMARY_KEY, UuidUtil.get32UUID()); //是否删除(0:有效 1:删除) + pd.put(PRIMARY_KEY, UuidUtil.get32UUID()); } /** diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityCustomerContactMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityCustomerContactMapper.xml index 469f985..b16d85c 100644 --- a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityCustomerContactMapper.xml +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityCustomerContactMapper.xml @@ -26,6 +26,8 @@ f.CREATETIME, f.OPERATOR, f.OPERATORNAME, + f.CONTACT_ID, + f.CUSTOMERADDRESS_ID, f.OPERATTIME @@ -45,6 +47,8 @@ CREATETIME, OPERATOR, OPERATORNAME, + CONTACT_ID, + CUSTOMERADDRESS_ID, OPERATTIME @@ -64,6 +68,8 @@ #{CREATETIME}, #{OPERATOR}, #{OPERATORNAME}, + #{CONTACT_ID}, + #{CUSTOMERADDRESS_ID}, #{OPERATTIME} diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityCustomerManagementMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityCustomerManagementMapper.xml index a77c257..8bacaf9 100644 --- a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityCustomerManagementMapper.xml +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityCustomerManagementMapper.xml @@ -25,6 +25,7 @@ f.CREATETIME, f.OPERATOR, f.OPERATORNAME, + f.CUSTOMERNAME_ID, f.OPERATTIME @@ -43,6 +44,7 @@ CREATETIME, OPERATOR, OPERATORNAME, + CUSTOMERNAME_ID, OPERATTIME @@ -61,6 +63,7 @@ #{CREATETIME}, #{OPERATOR}, #{OPERATORNAME}, + #{CUSTOMERNAME_ID}, #{OPERATTIME} @@ -93,8 +96,10 @@ f.*, i.CORP_NAME, u.CONTACT, + u.CONTACT_ID, u.CONTACTPHONE, - u.CUSTOMERADDRESS + u.CUSTOMERADDRESS, + u.CUSTOMERADDRESS_ID from f left join bus_corp_info i on f.TRANSPORTATIONCOMPANY = i.CORPINFO_ID diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityLocationManagementMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityLocationManagementMapper.xml index c402b53..2f0714b 100644 --- a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityLocationManagementMapper.xml +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityLocationManagementMapper.xml @@ -29,6 +29,8 @@ f.OPERATORNAME, f.LONGITUDE, f.LATITUDE, + f.LOCATIONNAME_ID, + f.ADDRESSDETAILS_ID, f.OPERATTIME @@ -51,6 +53,8 @@ OPERATORNAME, LONGITUDE, LATITUDE, + LOCATIONNAME_ID, + ADDRESSDETAILS_ID, OPERATTIME @@ -73,6 +77,8 @@ #{OPERATORNAME}, #{LONGITUDE}, #{LATITUDE}, + #{LOCATIONNAME_ID}, + #{ADDRESSDETAILS_ID}, #{OPERATTIME} diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml index e83fef8..9d1de6d 100644 --- a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml @@ -159,13 +159,17 @@ i.CORP_NAME, u.NAME, b.LOCATIONNAME AS ORIGIN_NAME, - b2.LOCATIONNAME AS DESTINATION_NAME + b2.LOCATIONNAME AS DESTINATION_NAME, + c.CUSTOMERNAME AS CLIENT_NAME, + c2.CUSTOMERNAME AS CONFIRMER_NAME from f left join bus_corp_info i on f.TRANSPORTATIONCOMPANY = i.CORPINFO_ID left join sys_user u on f.PRACTITIONER = u.USER_ID - left join bus_traffic_location_management b on f.ORIGIN = b.LOCATIONMANAGEMENT_ID - left join bus_traffic_location_management b2 on f.DESTINATION = b2.LOCATIONMANAGEMENT_ID + left join bus_traffic_location_management b on f.ORIGIN = b.LOCATIONNAME_ID + left join bus_traffic_location_management b2 on f.DESTINATION = b2.LOCATIONNAME_ID + left join bus_traffic_customer_management c on f.CLIENT = c.CUSTOMERNAME_ID + left join bus_traffic_customer_management c2 on f.CONFIRMER = c2.CUSTOMERNAME_ID where f.ISDELETE = '0' and f.WAYBILLSTATUS = #{pd.WAYBILLSTATUS} diff --git a/src/main/resources/mybatis/datasource/inspectAnnually/InspectAnnuallyMapper.xml b/src/main/resources/mybatis/datasource/inspectAnnually/InspectAnnuallyMapper.xml index 9fdc2a5..3b468e6 100644 --- a/src/main/resources/mybatis/datasource/inspectAnnually/InspectAnnuallyMapper.xml +++ b/src/main/resources/mybatis/datasource/inspectAnnually/InspectAnnuallyMapper.xml @@ -10,58 +10,58 @@ -INSPECTANNUALLY_ID, -CORPINFO_ID, -NUM, -VEHICLE_MODEL, -VEHICLE, -CAR_OWNERS, -TELEPHONE, -REGISTRANT, -PROCESSING_DATE, -ANNUAL_INSPECTION_CYCLE, -DUE_DATE, -INSPECTFEES, -ACTUAL_COLLECTION, -ADDRESS, -REMINDER_DAYS, -REMINDER_DATE, -REMINDER_STATUS, -INSPECTINFO, -NOTES, -ARCHIVES_TYPE, -ISDELETE, -CREATOR, -CREATORNAME, -CREATTIME + INSPECTANNUALLY_ID, + CORPINFO_ID, + NUM, + VEHICLE_MODEL, + VEHICLE, + CAR_OWNERS, + TELEPHONE, + REGISTRANT, + PROCESSING_DATE, + ANNUAL_INSPECTION_CYCLE, + DUE_DATE, + INSPECTFEES, + ACTUAL_COLLECTION, + ADDRESS, + REMINDER_DAYS, + REMINDER_DATE, + REMINDER_STATUS, + INSPECTINFO, + NOTES, + ARCHIVES_TYPE, + ISDELETE, + CREATOR, + CREATORNAME, + CREATTIME -#{INSPECTANNUALLY_ID}, -#{CORPINFO_ID}, -#{NUM}, -#{VEHICLE_MODEL}, -#{VEHICLE}, -#{CAR_OWNERS}, -#{TELEPHONE}, -#{REGISTRANT}, -#{PROCESSING_DATE}, -#{ANNUAL_INSPECTION_CYCLE}, -#{DUE_DATE}, -#{INSPECTFEES}, -#{ACTUAL_COLLECTION}, -#{ADDRESS}, -#{REMINDER_DAYS}, -#{REMINDER_DATE}, -#{REMINDER_STATUS}, -#{INSPECTINFO}, -#{NOTES}, -#{ARCHIVES_TYPE}, -#{ISDELETE}, -#{CREATOR}, -#{CREATORNAME}, -#{CREATTIME} + #{INSPECTANNUALLY_ID}, + #{CORPINFO_ID}, + #{NUM}, + #{VEHICLE_MODEL}, + #{VEHICLE}, + #{CAR_OWNERS}, + #{TELEPHONE}, + #{REGISTRANT}, + #{PROCESSING_DATE}, + #{ANNUAL_INSPECTION_CYCLE}, + #{DUE_DATE}, + #{INSPECTFEES}, + #{ACTUAL_COLLECTION}, + #{ADDRESS}, + #{REMINDER_DAYS}, + #{REMINDER_DATE}, + #{REMINDER_STATUS}, + #{INSPECTINFO}, + #{NOTES}, + #{ARCHIVES_TYPE}, + #{ISDELETE}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME} @@ -179,13 +179,13 @@ CREATTIME --> - diff --git a/src/main/resources/mybatis/datasource/operations/OperationsMapper.xml b/src/main/resources/mybatis/datasource/operations/OperationsMapper.xml index b79a5f8..eb525c7 100644 --- a/src/main/resources/mybatis/datasource/operations/OperationsMapper.xml +++ b/src/main/resources/mybatis/datasource/operations/OperationsMapper.xml @@ -10,53 +10,88 @@ -OPERATIONS_ID, -CORPINFO_ID, -NUM, -VEHICLE_MODEL, -VEHICLE, -CAR_OWNERS, -TELEPHONE, -REGISTRANT, -PROCESSING_DATE, -CYCLE, -DUE_DATE, -REMINDER_DAYS, -REMINDER_DATE, -REMINDER_STATUS, -OPERATIONSINFO, -NOTES, -ARCHIVES_TYPE, -ISDELETE, -CREATOR, -CREATORNAME, -CREATTIME - + OPERATIONS_ID, + CORPINFO_ID, + INDUSTRY_TYPE, + INDUSTRY_TYPE_TREE, + INDUSTRY_TYPE_NAMES, + OPER_CORP, + VEHICLE_MODEL, + VEHICLE, + BASICINFO_LICENSE_PLATE, + BASICINFO_VIN, + BASICINFO_VEHICLETYPE, + BASICINFO_CAR_OWNERS, + BASICINFO_CARPHONE, + BASICINFO_INITIAL_REGISTRATION_DATE, + BASICINFO_PROVINCE, + BASICINFO_CITY, + BASICINFO_COUNTY, + CAR_OWNERS, + TELEPHONE, + REGISTRANT, + PROCESSING_DATE, + CYCLE, + DUE_DATE, + REMINDER_DAYS, + REMINDER_DATE, + REMINDER_STATUS, + OPERATIONSINFO, + NOTES, + ISDELETE, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + DELETEOR, + DELETEORNAME, + DELETTIME + -#{OPERATIONS_ID}, -#{CORPINFO_ID}, -#{NUM}, -#{VEHICLE_MODEL}, -#{VEHICLE}, -#{CAR_OWNERS}, -#{TELEPHONE}, -#{REGISTRANT}, -#{PROCESSING_DATE}, -#{CYCLE}, -#{DUE_DATE}, -#{REMINDER_DAYS}, -#{REMINDER_DATE}, -#{REMINDER_STATUS}, -#{OPERATIONSINFO}, -#{NOTES}, -#{ARCHIVES_TYPE}, -#{ISDELETE}, -#{CREATOR}, -#{CREATORNAME}, -#{CREATTIME} - + #{OPERATIONS_ID}, + #{CORPINFO_ID}, + #{INDUSTRY_TYPE}, + #{INDUSTRY_TYPE_TREE}, + #{INDUSTRY_TYPE_NAMES}, + #{OPER_CORP}, + #{VEHICLE_MODEL}, + #{VEHICLE}, + #{BASICINFO_LICENSE_PLATE}, + #{BASICINFO_VIN}, + #{BASICINFO_VEHICLETYPE}, + #{BASICINFO_CAR_OWNERS}, + #{BASICINFO_CARPHONE}, + #{BASICINFO_INITIAL_REGISTRATION_DATE}, + #{BASICINFO_PROVINCE}, + #{BASICINFO_CITY}, + #{BASICINFO_COUNTY}, + #{CAR_OWNERS}, + #{TELEPHONE}, + #{REGISTRANT}, + #{PROCESSING_DATE}, + #{CYCLE}, + #{DUE_DATE}, + #{REMINDER_DAYS}, + #{REMINDER_DATE}, + #{REMINDER_STATUS}, + #{OPERATIONSINFO}, + #{NOTES}, + #{ISDELETE}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{DELETEOR}, + #{DELETEORNAME}, + #{DELETTIME} + +