|
@@ -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}
|