|
@ -410,4 +410,45 @@ |
|
|
FIND_IN_SET( #{deptId}, ALL_DEPT_IDS ) |
|
|
FIND_IN_SET( #{deptId}, ALL_DEPT_IDS ) |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectAuthenticatedListUserDto" resultType="com.elink.esua.epdc.dto.UserDTO"> |
|
|
|
|
|
SELECT |
|
|
|
|
|
u.id, |
|
|
|
|
|
u.REAL_NAME, |
|
|
|
|
|
u.NICKNAME, |
|
|
|
|
|
u.MOBILE, |
|
|
|
|
|
u.REGISTER_TIME, |
|
|
|
|
|
u.CREATED_TIME, |
|
|
|
|
|
IDENTITY_NO, |
|
|
|
|
|
ADDRESS, |
|
|
|
|
|
STATE, |
|
|
|
|
|
PARTY_FLAG, |
|
|
|
|
|
u.ALL_DEPT_NAMES, |
|
|
|
|
|
u.FACE_IMG |
|
|
|
|
|
FROM |
|
|
|
|
|
epdc_user u |
|
|
|
|
|
where |
|
|
|
|
|
u.del_flag = '0' |
|
|
|
|
|
<if test="startTime != '' and endTime != ''">and u.CREATED_TIME between #{startTime} and #{endTime}</if> |
|
|
|
|
|
<if test="state != '' and state != null">and u.state = #{state}</if> |
|
|
|
|
|
<if test="realName != '' and realName != null">and u.real_name like '%${realName}%'</if> |
|
|
|
|
|
<if test="nickname != '' and nickname != null">and u.NICKNAME like '%${nickname}%'</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="partyFlag != '' and partyFlag != null">and u.party_flag = #{partyFlag}</if> |
|
|
|
|
|
<if test="streetId != '' and streetId != null"> |
|
|
|
|
|
AND (find_in_set(#{streetId},u.PARENT_DEPT_IDS) |
|
|
|
|
|
OR find_in_set(#{streetId},u.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="communityId != '' and communityId != null"> |
|
|
|
|
|
AND (find_in_set(#{communityId},u.PARENT_DEPT_IDS) |
|
|
|
|
|
OR find_in_set(#{communityId},u.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="gridId != '' and gridId != null"> |
|
|
|
|
|
and (u.grid_id = #{gridId} |
|
|
|
|
|
OR find_in_set(#{gridId},u.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
|
|
|
ORDER BY |
|
|
|
|
|
u.register_time desc |
|
|
|
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |
|
|