|
@@ -157,12 +157,16 @@
|
157
|
157
|
select p.post_id, u.user_id, u.account, u.name, u.status
|
158
|
158
|
from sys_user_post p
|
159
|
159
|
left join sys_user_info u on u.user_id = p.user_id
|
|
160
|
+ left join sys_dept_info sdi on sdi.dept_id = u.dept_id
|
160
|
161
|
where u.status = '0' and u.del_flag = '0'
|
161
|
162
|
<if test="postId!= null and postId!= ''">
|
162
|
163
|
and p.post_id = #{postId}
|
163
|
164
|
</if>
|
164
|
165
|
<if test="userName!= null and userName!= ''">
|
165
|
166
|
and u.name like '%'+#{userName}+'%'
|
|
167
|
+ </if>
|
|
168
|
+ <if test="deptName.equals('配网技术中心')||deptName.equals('电网技术中心')">
|
|
169
|
+ and sdi.dept_name = #{deptName}
|
166
|
170
|
</if>
|
167
|
171
|
ORDER BY u.order_code DESC
|
168
|
172
|
</select>
|