Explorar el Código

添加个人认证和企业认证认证通过时间

qxm hace 4 años
padre
commit
44ac6c0663

+ 15 - 2
suishenbang-system/src/main/java/com/dgtly/system/domain/CustomersExt.java

@@ -1,10 +1,13 @@
 package com.dgtly.system.domain;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 import org.apache.commons.lang3.builder.ToStringBuilder;
 import org.apache.commons.lang3.builder.ToStringStyle;
 import com.dgtly.common.annotation.Excel;
 import com.dgtly.common.core.domain.BaseEntity;
 
+import java.util.Date;
+
 /**
  * 经销商扩展对象 customers_ext
  * 
@@ -49,7 +52,9 @@ public class CustomersExt extends BaseEntity
     /** 是否认证(0:否1:是) */
     @Excel(name = "是否认证", readConverterExp = "0=:否1:是")
     private String isAuthentication;
-
+    /** 更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date orgAttestationTime;
     /** 接收认证的手机号 */
     @Excel(name = "接收认证的手机号")
     private String receiveUrlMobileNo;
@@ -140,7 +145,15 @@ public class CustomersExt extends BaseEntity
         this.receiveUrlMobileNo = receiveUrlMobileNo;
     }
 
-    public String getReceiveUrlMobileNo() 
+    public Date getOrgAttestationTime() {
+        return orgAttestationTime;
+    }
+
+    public void setOrgAttestationTime(Date orgAttestationTime) {
+        this.orgAttestationTime = orgAttestationTime;
+    }
+
+    public String getReceiveUrlMobileNo()
     {
         return receiveUrlMobileNo;
     }

+ 13 - 0
suishenbang-system/src/main/java/com/dgtly/system/domain/SysUser.java

@@ -3,6 +3,8 @@ package com.dgtly.system.domain;
 import java.util.Date;
 import java.util.List;
 import javax.validation.constraints.*;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
 import org.apache.commons.lang3.builder.ToStringBuilder;
 import org.apache.commons.lang3.builder.ToStringStyle;
 import com.dgtly.common.annotation.Excel;
@@ -106,6 +108,9 @@ public class SysUser extends BaseEntity
     private String accountId;
     /** 是否认证 */
     private String isAuthentication;
+    /** 更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date personAttestationTime;
     /** 接受认证的手机号 */
     private String receiveUrlMobileNo;
     /** 用户销售信息扩展 */
@@ -450,6 +455,14 @@ public class SysUser extends BaseEntity
         this.isAuthentication = isAuthentication;
     }
 
+    public Date getPersonAttestationTime() {
+        return personAttestationTime;
+    }
+
+    public void setPersonAttestationTime(Date personAttestationTime) {
+        this.personAttestationTime = personAttestationTime;
+    }
+
     public String getReceiveUrlMobileNo() {
         return receiveUrlMobileNo;
     }

+ 3 - 2
suishenbang-system/src/main/resources/mapper/system/CustomersExtMapper.xml

@@ -14,11 +14,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="orgLegalidNumber"    column="org_legalId_number"    />
         <result property="orgLegalName"    column="org_legal_name"    />
         <result property="isAuthentication"    column="is_authentication"    />
+        <result property="orgAttestationTime"    column="org_attestation_time"    />
         <result property="receiveUrlMobileNo"    column="receive_url_mobile_no"    />
     </resultMap>
 
     <sql id="selectCustomersExtVo">
-        select chains_code, creator, customers_name, org_id, id_type, id_number, org_legalId_number, org_legal_name, is_authentication, receive_url_mobile_no from customers_ext
+        select chains_code, creator, customers_name, org_id, id_type, id_number, org_legalId_number, org_legal_name, is_authentication, org_attestation_time,receive_url_mobile_no from customers_ext
     </sql>
 
     <select id="selectCustomersExtList" parameterType="CustomersExt" resultMap="CustomersExtResult">
@@ -108,7 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </update>
 
     <update id="updateCustomersIsAuthentication" parameterType="String">
-        update customers_ext set is_authentication = #{isAuthentication}
+        update customers_ext set is_authentication = #{isAuthentication}, org_attestation_time = now()
 		where org_id = #{accountId}
     </update>
 

+ 4 - 2
suishenbang-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -20,6 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		<result property="idNumber"         column="id_number"         />
 		<result property="accountId"         column="account_id"         />
 		<result property="isAuthentication"         column="is_authentication"         />
+		<result property="personAttestationTime"         column="person_attestation_time"         />
 		<result property="receiveUrlMobileNo"         column="receive_url_mobile_no"         />
 		<result property="status"       column="status"       />
 		<result property="delFlag"      column="del_flag"     />
@@ -80,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	
 	<sql id="selectUserVo">
         select  u.user_id,u.company_id, u.dept_id, u.login_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.password, u.salt,u.id_type,u.id_number,u.account_id,u.is_authentication,u.receive_url_mobile_no, u.status,
-        		u.del_flag, u.login_ip, u.login_date, u.create_time, u.remark,
+        		u.del_flag, u.login_ip, u.login_date, u.create_time, u.remark,u.is_consignee,u.person_attestation_time,
         		c.company_name,
        		    d.dept_id, d.parent_id, d.dept_name, d.order_num, d.leader, d.status as dept_status,
        		    r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status,
@@ -243,6 +244,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  			<if test="idNumber != null and idNumber != ''">id_number = #{idNumber},</if>
  			<if test="accountId != null and accountId != ''">account_id = #{accountId},</if>
  			<if test="isAuthentication != null and isAuthentication != ''">is_authentication = #{isAuthentication},</if>
+ 			<if test="personAttestationTime != null and personAttestationTime != ''">person_attestation_time = #{personAttestationTime},</if>
  			<if test="receiveUrlMobileNo != null and receiveUrlMobileNo != ''">receive_url_mobile_no = #{receiveUrlMobileNo},</if>
  			<if test="status != null and status != ''">status = #{status},</if>
  			<if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if>
@@ -256,7 +258,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	</update>
 
 	<update id="updateIsAuthentication" parameterType="String">
-		update sys_user set is_authentication = #{isAuthentication}
+		update sys_user set is_authentication = #{isAuthentication} ,person_attestation_time = now()
 		where account_id = #{accountId}
 	</update>