|
|
@@ -141,7 +141,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
141
|
141
|
<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
|
|
142
|
142
|
select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1
|
|
143
|
143
|
</select>
|
|
144
|
|
-
|
|
|
144
|
+ <select id="selectUserListByAdRole" resultMap="SysUserResult">
|
|
|
145
|
+ select u.user_id, u.dept_id, u.nick_name, 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 from sys_user u
|
|
|
146
|
+ join sys_user_role ur on ur.user_id =u.user_id
|
|
|
147
|
+ join sys_role r on ur.role_id = r.role_id and r.role_name='仲裁员'
|
|
|
148
|
+ where r.del_flag = '0' and r.status='0'
|
|
|
149
|
+ and u.del_flag = '0' and u.status='0'
|
|
|
150
|
+ <if test="arbitratorName != null and arbitratorName != ''">
|
|
|
151
|
+ AND u.nick_name like concat('%', #{arbitratorName}, '%')
|
|
|
152
|
+ </if>
|
|
|
153
|
+
|
|
|
154
|
+ <if test="idList != null and idList.size() > 0">
|
|
|
155
|
+ AND u.user_id in
|
|
|
156
|
+ <foreach item="id" collection="idList" open="(" separator="," close=")">
|
|
|
157
|
+ #{id}
|
|
|
158
|
+ </foreach>
|
|
|
159
|
+ </if>
|
|
|
160
|
+
|
|
|
161
|
+
|
|
|
162
|
+ </select>
|
|
|
163
|
+
|
|
145
|
164
|
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
|
146
|
165
|
insert into sys_user(
|
|
147
|
166
|
<if test="userId != null and userId != 0">user_id,</if>
|