Browse Source

不再需要网格信息

master
zhangyuan 5 years ago
parent
commit
4abf15bc03
  1. 24
      epdc-cloud-user/src/main/resources/mapper/UserDao.xml

24
epdc-cloud-user/src/main/resources/mapper/UserDao.xml

@ -86,18 +86,18 @@
<if test="mobile != '' and mobile != null">and u.mobile like '%${mobile}%'</if> <if test="mobile != '' and mobile != null">and u.mobile like '%${mobile}%'</if>
<if test="identityNo != '' and identityNo != null">and u.identity_no like '%${identityNo}%'</if> <if test="identityNo != '' and identityNo != null">and u.identity_no like '%${identityNo}%'</if>
<if test="partyFlag != '' and partyFlag != null">and u.party_flag = #{partyFlag}</if> <if test="partyFlag != '' and partyFlag != null">and u.party_flag = #{partyFlag}</if>
<if test="streetId != '' and streetId != null"> <!-- <if test="streetId != '' and streetId != null">-->
AND (find_in_set(#{streetId},ug.PARENT_DEPT_IDS) <!-- AND (find_in_set(#{streetId},ug.PARENT_DEPT_IDS)-->
OR find_in_set(#{streetId},ug.ALL_DEPT_IDS)) <!-- OR find_in_set(#{streetId},ug.ALL_DEPT_IDS))-->
</if> <!-- </if>-->
<if test="communityId != '' and communityId != null"> <!-- <if test="communityId != '' and communityId != null">-->
AND (find_in_set(#{communityId},ug.PARENT_DEPT_IDS) <!-- AND (find_in_set(#{communityId},ug.PARENT_DEPT_IDS)-->
OR find_in_set(#{communityId},ug.ALL_DEPT_IDS)) <!-- OR find_in_set(#{communityId},ug.ALL_DEPT_IDS))-->
</if> <!-- </if>-->
<if test="gridId != '' and gridId != null"> <!-- <if test="gridId != '' and gridId != null">-->
and (ug.grid_id = #{gridId} <!-- and (ug.grid_id = #{gridId}-->
OR find_in_set(#{gridId},ug.ALL_DEPT_IDS)) <!-- OR find_in_set(#{gridId},ug.ALL_DEPT_IDS))-->
</if> <!-- </if>-->
GROUP BY GROUP BY
u.ID u.ID
ORDER BY ORDER BY

Loading…
Cancel
Save