feat:用户根据当前部门和当前部门及其子部门查询
This commit is contained in:
1 parent
91d310fa04
commit
9db145a4ac
3 files changed
+21
No files matched your search
@@ -178,6 +178,12 @@
|
||||
<if test="query.deptId != null and query.deptId != ''">
|
||||
AND u.dept_id = #{query.deptId}
|
||||
</if>
|
||||
<if test="query.deptIds != null and query.deptIds.size() != 0">
|
||||
and u.dept_id IN
|
||||
<foreach collection="query.deptIds" item="v" open="(" close=")" separator=",">
|
||||
#{v}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="query.phone != null and query.phone != ''">
|
||||
<bind name="phoneLike" value="'%'+query.phone+'%'"/>
|
||||
AND u.phone LIKE #{phoneLike}
|
||||
|
||||
Reference in new issue
Block a user