From 38a18c99f7c80e501f3592321baa8190ad26f93e Mon Sep 17 00:00:00 2001
From: liuxiaoxu <1793812695@qq.com>
Date: Tue, 11 Jun 2024 14:18:43 +0800
Subject: [PATCH] =?UTF-8?q?[feat]=E9=94=80=E5=94=AE=E7=AE=A1=E7=90=86:=20?=
=?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=B5=84=E6=96=99=20=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E5=BD=95=E5=85=A5=E6=97=B6=E9=97=B4=E5=AD=97=E6=AE=B5createTim?=
=?UTF-8?q?e=20=E4=BF=AE=E6=94=B9=E5=89=8D=E7=AB=AF=E5=BD=95=E5=85=A5?=
=?UTF-8?q?=E6=97=B6=E9=97=B4=E5=9B=9E=E6=98=BE=E9=97=AE=E9=A2=98=20?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=89=8D=E7=AB=AF=E5=88=97=E8=A1=A8=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E7=9A=84=E5=B1=95=E7=A4=BA=E6=A0=B9=E6=8D=AE=E5=88=9B?=
=?UTF-8?q?=E5=BB=BA=E6=97=B6=E9=97=B4=E8=BF=9B=E8=A1=8C=E9=99=8D=E5=BA=8F?=
=?UTF-8?q?=E6=8E=92=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../system/controller/SysCustomerController.java | 2 +-
.../java/com/ruoyi/system/domain/SysCustomer.java | 1 +
.../resources/mapper/system/SysCustomerMapper.xml | 11 +++++++----
.../resources/templates/system/customer/customer.html | 2 +-
4 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysCustomerController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysCustomerController.java
index 809fabf2..08cf26ac 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysCustomerController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysCustomerController.java
@@ -178,7 +178,7 @@ public class SysCustomerController extends BaseController
sysCustomerOper.setOper("新建");
sysCustomerOper.setOperPeople(operPeople);
sysCustomerOper.setOperStatus(sysCustomer.getAuditStatus());
- sysCustomerOper.setCreateTime(DateUtils.getNowDate());
+ sysCustomerOper.setCreateTime(new Date());
//根据是否有流程实例,判断是否新增成功
ProcessInstance processInstance = sysCustomerService.submitApply(sysCustomer);
if(processInstance != null){
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysCustomer.java b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysCustomer.java
index df54e458..6ea10287 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysCustomer.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysCustomer.java
@@ -730,6 +730,7 @@ public class SysCustomer extends BaseEntity
.append("useStatus",getUseStatus())
.append("customerId",getCustomerId())
.append("customerName",getCustomerName())
+ .append("createTime", getCreateTime())
.toString();
}
}
diff --git a/ruoyi-admin/src/main/resources/mapper/system/SysCustomerMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/SysCustomerMapper.xml
index 766c18b8..13c523ed 100644
--- a/ruoyi-admin/src/main/resources/mapper/system/SysCustomerMapper.xml
+++ b/ruoyi-admin/src/main/resources/mapper/system/SysCustomerMapper.xml
@@ -59,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
select id,enterprise_code,enterprise_name,english_name,customer_abbreviation ,customer_purser ,
@@ -68,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
customer_contact_id,customer_contact,customer_office,contact_number,customer_email,customer_fax,
delivery_address_id,delivery_customer_person,delivery_customer_phone,
delivery_address,delivery_customer_postal,delivery_customer_fax,business_members,
- identifying_people,first_add_time,update_info_time,audit_status,use_status,update_by,
+ identifying_people,first_add_time,update_info_time, create_time ,audit_status,use_status,update_by,
apply_user,apply_time from sys_customer
@@ -80,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
customer_contact_id,customer_contact,customer_office,contact_number,customer_email,customer_fax,
delivery_address_id,delivery_customer_person,delivery_customer_phone,
delivery_address,delivery_customer_postal,delivery_customer_fax,business_members,
- identifying_people,first_add_time,update_info_time,audit_status,use_status from
+ identifying_people,first_add_time,update_info_time,audit_status,use_status, create_time from
sys_customer
and use_status = '1' and use_status = '1'
@@ -95,7 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
s.customer_fax,s.delivery_address_id,s.delivery_customer_person,s.delivery_customer_phone,s.delivery_address,
s.delivery_customer_postal,s.delivery_customer_fax,s.business_members,s.identifying_people,s.first_add_time,
s.update_info_time,s.audit_status,s.use_status,s.update_by,s.instance_id, s.instance_type,p.dict_value as instance_type_name,
- s.submit_instance_id, s.cancel_instance_id, s.restore_instance_id, s.apply_title, s.apply_user, s.apply_time
+ s.submit_instance_id, s.cancel_instance_id, s.restore_instance_id, s.apply_title, s.apply_user, s.apply_time ,s.create_time
from sys_customer as s
left join(
select dict_value,dict_label from sys_dict_data where dict_type = 'processType'
@@ -114,7 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and s.first_add_time between #{params.beginCreateTime} and #{params.endCreateTime}
and s.customer_sign = #{customerSign}
- order by s.first_add_time desc
+ order by s.create_time desc