|
@@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="userCode" column="user_code"/>
|
|
|
<result property="userType" column="user_type" />
|
|
|
<result property="companyId" column="company_id" />
|
|
|
+ <result property="companySet" column="company_set" />
|
|
|
<association property="dept" column="dept_id" javaType="SysDept" resultMap="deptResult" />
|
|
|
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
|
|
|
</resultMap>
|
|
@@ -75,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
u.tenant_id,
|
|
|
u.user_code,
|
|
|
u.company_id,
|
|
|
+ u.company_set,
|
|
|
d.dept_id,
|
|
|
d.parent_id,
|
|
|
d.ancestors,
|
|
@@ -100,7 +102,7 @@ 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
|
|
|
+ d.director_id, d.type,u.job_number,u.user_type,u.tenant_id,u.user_code,u.company_id,u.company_set
|
|
|
from
|
|
|
sys_user u
|
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
@@ -325,7 +327,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userCode != null and userCode != ''">user_code,</if>
|
|
|
<if test="nickNameEn != null and nickNameEn != ''">nick_name_en,</if>
|
|
|
<if test="companyId != null and companyId != ''">company_id,</if>
|
|
|
- create_time
|
|
|
+ <if test="companySet != null and companySet != ''">company_set,</if>
|
|
|
+ create_time
|
|
|
)values(
|
|
|
<if test="userId != null and userId != ''">#{userId},</if>
|
|
|
<if test="deptId != null and deptId != ''">#{deptId},</if>
|
|
@@ -345,6 +348,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userCode != null and userCode != ''">#{userCode},</if>
|
|
|
<if test="nickNameEn != null and nickNameEn != ''">#{nickNameEn},</if>
|
|
|
<if test="companyId != null and companyId != ''">#{companyId},</if>
|
|
|
+ <if test="companySet != null and companySet != ''">#{companySet},</if>
|
|
|
sysdate()
|
|
|
)
|
|
|
</insert>
|
|
@@ -372,6 +376,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userCode != null and userCode != ''">user_code = #{userCode},</if>
|
|
|
<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>
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
where user_id = #{userId}
|