|
@@ -27,6 +27,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="position" column="position" />
|
|
<result property="position" column="position" />
|
|
<result property="weChat" column="we_chat" />
|
|
<result property="weChat" column="we_chat" />
|
|
<result property="type" column="type" />
|
|
<result property="type" column="type" />
|
|
|
|
+ <!-- 2024年11月11日17:49:29 新增坐席相关的字段【结合余尚辉的表】-->
|
|
|
|
+ <result property="saasId" column="saas_id" />
|
|
|
|
+ <result property="agentNum" column="agent_num" />
|
|
|
|
+ <result property="outId" column="out_id" />
|
|
|
|
+ <result property="agentType" column="agent_type" />
|
|
|
|
+ <result property="phoneNum" column="phone_num" />
|
|
|
|
+ <result property="distribute" column="distribute" />
|
|
|
|
+ <result property="agentState" column="agent_state" />
|
|
|
|
+ <result property="identityType" column="identity_type" />
|
|
|
|
+ <result property="isDelete" column="is_delete" />
|
|
<association property="dept" javaType="SysDept" resultMap="deptResult" />
|
|
<association property="dept" javaType="SysDept" resultMap="deptResult" />
|
|
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
|
|
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -53,7 +63,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<sql id="selectUserVo">
|
|
<sql id="selectUserVo">
|
|
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.type type,
|
|
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.type type,
|
|
d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status,
|
|
d.dept_id, d.parent_id, d.ancestors, 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, u.emergency_phone emergency_phone, u.position position, u.we_chat we_chat
|
|
|
|
|
|
+ r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status, u.emergency_phone emergency_phone, u.position position, u.we_chat we_chat,
|
|
|
|
+ u.saas_id saas_id, u.agent_num agent_num, u.out_id out_id, u.agent_type agent_type, u.phone_num phone_num, u.distribute distribute, u.agent_state agent_state, u.identity_type identity_type, u.is_delete is_delete
|
|
from sys_user u
|
|
from sys_user u
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
left join sys_user_role ur on u.user_id = ur.user_id
|
|
left join sys_user_role ur on u.user_id = ur.user_id
|