Parcourir la source

用户添加开户信息字段

yzc il y a 1 an
Parent
commit
b4ac3b89a3

+ 40 - 0
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java

@@ -179,6 +179,22 @@ public class SysUser extends BaseEntity {
     private String ddUserId;
     private Long companyId;
 
+    /**
+     * 开户名
+     */
+    private String accountName;
+    /**
+     * 开户银行
+     */
+    private String accountBank;
+    /**
+     * 开户账号
+     */
+    private String accountNumber;
+
+
+    //==================================================
+
     @TableField(exist = false)
     private Long ofCompanyId;
 
@@ -200,6 +216,30 @@ public class SysUser extends BaseEntity {
     //================================================================
 
 
+    public String getAccountName() {
+        return accountName;
+    }
+
+    public void setAccountName(String accountName) {
+        this.accountName = accountName;
+    }
+
+    public String getAccountBank() {
+        return accountBank;
+    }
+
+    public void setAccountBank(String accountBank) {
+        this.accountBank = accountBank;
+    }
+
+    public String getAccountNumber() {
+        return accountNumber;
+    }
+
+    public void setAccountNumber(String accountNumber) {
+        this.accountNumber = accountNumber;
+    }
+
     public Long getOfCompanyId() {
         return ofCompanyId;
     }

+ 15 - 1
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -31,6 +31,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		<result property="companyId"     column="company_id"	  />
 		<result property="ofCompanyId"     column="company_id"	  />
 		<result property="companySet"     column="company_set"	  />
+		<result property="accountName"     column="account_name"	  />
+		<result property="accountBank"     column="account_bank"	  />
+		<result property="accountNumber"     column="account_number"	  />
 		<association property="dept"    column="dept_id" javaType="SysDept" resultMap="deptResult" />
         <collection  property="roles"   javaType="java.util.List"           resultMap="RoleResult" />
 	</resultMap>
@@ -104,7 +107,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		select
 		u.user_id, u.dept_id, u.nick_name, u.nick_name_en, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status,
 		u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader_id,
-		d.director_id, d.type,u.job_number,u.user_type,u.tenant_id,u.user_code,u.company_id,u.company_set
+		d.director_id, d.type,u.job_number,u.user_type,u.tenant_id,u.user_code,u.company_id,u.company_set,
+		u.account_name,u.account_bank,u.account_number
 		from
 		sys_user u
 		left join sys_dept d on u.dept_id = d.dept_id
@@ -330,6 +334,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		<if test="nickNameEn != null and nickNameEn != ''">nick_name_en,</if>
 		<if test="companyId != null and companyId != ''">company_id,</if>
         <if test="companySet != null and companySet != ''">company_set,</if>
+		<if test="accountName != null and accountName != ''">account_name,</if>
+		<if test="accountBank != null and accountBank != ''">account_bank,</if>
+		<if test="accountNumber != null and accountNumber != ''">account_number,</if>
         create_time
         )values(
         <if test="userId != null and userId != ''">#{userId},</if>
@@ -351,6 +358,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		<if test="nickNameEn != null and nickNameEn != ''">#{nickNameEn},</if>
 		<if test="companyId != null and companyId != ''">#{companyId},</if>
 		<if test="companySet != null and companySet != ''">#{companySet},</if>
+		<if test="accountName != null and accountName != ''">#{accountName},</if>
+		<if test="accountBank != null and accountBank != ''">#{accountBank},</if>
+		<if test="accountNumber != null and accountNumber != ''">#{accountNumber},</if>
 		sysdate()
         )
     </insert>
@@ -379,6 +389,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 			<if test="nickNameEn != null and nickNameEn != ''">nick_name_en = #{nickNameEn},</if>
 			<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
 			<if test="companySet != null and companySet != ''">company_set = #{companySet},</if>
+
+			<if test="accountName != null and accountName != ''">account_name = #{accountName},</if>
+			<if test="accountBank != null and accountBank != ''">account_bank = #{accountBank},</if>
+			<if test="accountNumber != null and accountNumber != ''">account_number = #{accountNumber},</if>
 			update_time = sysdate()
         </set>
         where user_id = #{userId}