|
@@ -32,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="orgDeptName" column="orgDeptName" />
|
|
|
<result property="issendmsg" column="issendmsg" />
|
|
|
<result property="isjgmsg" column="isjgmsg" />
|
|
|
+ <result property="iscamera" column="iscamera" />
|
|
|
<result property="postNames" column="postNames" />
|
|
|
<result property="postSort" column="postSort" />
|
|
|
|
|
@@ -75,7 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select d.forestdept_type, u.pinyin_short,u.pinyin_first,u.pinyin_full,u.user_id, u.dept_id,u.org_dept_id, u.login_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.sex, u.password, u.salt, u.status, u.del_flag, u.login_ip, u.login_date, u.create_time, u.remark,
|
|
|
d.dept_id,orgd.dept_id, d.parent_id, d.dept_name, d.order_num, d.leader, d.status as dept_status,
|
|
|
orgd.dept_id org_dept_id, orgd.parent_id org_parent_id, orgd.dept_name org_dept_name, orgd.order_num org_order_num, orgd.leader org_leader, orgd.status as org_dept_status,
|
|
|
- r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status ,u.issendmsg,u.isjgmsg
|
|
|
+ r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status ,u.issendmsg,u.isjgmsg,u.iscamera
|
|
|
|
|
|
from sys_user u
|
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
@@ -88,7 +89,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select u.pinyin_short,u.pinyin_first,u.pinyin_full,u.user_id, u.dept_id,u.org_dept_id,
|
|
|
u.login_name, u.user_name, u.user_type, u.email, u.avatar,
|
|
|
u.phonenumber, u.password, u.sex, u.salt, u.status, u.del_flag,
|
|
|
- u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader,u.issendmsg,u.isjgmsg,
|
|
|
+ u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader,u.issendmsg,u.isjgmsg,u.iscamera,
|
|
|
(select dept_name from sys_dept where dept_id=u.org_dept_id) as orgDeptName,
|
|
|
(select GROUP_CONCAT(spost.post_name SEPARATOR ',') from sys_user_post upost,sys_post spost where upost.post_id=spost.post_id and upost.user_id=u.user_id) postNames,
|
|
|
(select min(spost.post_sort) from sys_user_post upost,sys_post spost where upost.post_id=spost.post_id and upost.user_id=u.user_id) postSort
|
|
@@ -125,13 +126,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
-
|
|
|
+ order by u.dept_id
|
|
|
</select>
|
|
|
|
|
|
<select id="selectUserListByUserIds" parameterType="java.util.Map" resultMap="SysUserResult">
|
|
|
select u.pinyin_short,u.pinyin_first,u.pinyin_full,u.user_id, u.dept_id,u.org_dept_id, u.login_name,
|
|
|
u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.salt, u.status, u.del_flag,
|
|
|
- u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader,u.issendmsg,u.isjgmsg
|
|
|
+ u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader,u.issendmsg,u.isjgmsg,u.iscamera
|
|
|
|
|
|
from sys_user u
|
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
@@ -140,10 +141,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<foreach item="userId" index="index" collection="userIds" open="(" separator="," close=")">
|
|
|
#{userId}
|
|
|
</foreach>
|
|
|
+ order by u.dept_id
|
|
|
</select>
|
|
|
|
|
|
<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
|
|
|
- select distinct u.pinyin_short,u.pinyin_first,u.pinyin_full,u.user_id, u.dept_id,u.org_dept_id, u.login_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.status, u.create_time,u.issendmsg,u.isjgmsg
|
|
|
+ select distinct u.pinyin_short,u.pinyin_first,u.pinyin_full,u.user_id, u.dept_id,u.org_dept_id, u.login_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.status, u.create_time,u.issendmsg,u.isjgmsg,u.iscamera
|
|
|
from sys_user u
|
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
|
left join sys_dept orgd on u.org_dept_id = orgd.dept_id
|
|
@@ -158,10 +160,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
+ order by u.dept_id
|
|
|
</select>
|
|
|
|
|
|
<select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult">
|
|
|
- select distinct u.pinyin_short,u.pinyin_first,u.pinyin_full,u.user_id, u.dept_id,u.org_dept_id, u.login_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.status, u.create_time,u.issendmsg,u.isjgmsg
|
|
|
+ select distinct u.pinyin_short,u.pinyin_first,u.pinyin_full,u.user_id, u.dept_id,u.org_dept_id, u.login_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.status, u.create_time,u.issendmsg,u.isjgmsg,u.iscamera
|
|
|
from sys_user u
|
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
|
left join sys_dept orgd on u.org_dept_id = orgd.dept_id
|
|
@@ -177,6 +180,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
+ order by u.dept_id
|
|
|
</select>
|
|
|
|
|
|
<select id="selectUserByLoginName" parameterType="String" resultMap="SysUserResult">
|
|
@@ -265,6 +269,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="issendmsg != null">issendmsg = #{issendmsg},</if>
|
|
|
<if test="isjgmsg != null">isjgmsg = #{isjgmsg},</if>
|
|
|
+ <if test="iscamera != null">iscamera = #{iscamera},</if>
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
where user_id = #{userId}
|