|
|
@ -75,4 +75,30 @@ |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
<select id="getPageList" resultType="com.elink.esua.epdc.dto.EpidemicUserInfoAuditDTO"> |
|
|
|
select * from epidemic_user_info_audit |
|
|
|
WHERE |
|
|
|
DEL_FLAG = '0' |
|
|
|
<if test="userName != '' and userName != null"> |
|
|
|
AND USER_NAME like '%${userName}%' |
|
|
|
</if> |
|
|
|
<if test="idCard != '' and idCard != null"> |
|
|
|
AND ID_CARD like '%${idCard}%' |
|
|
|
</if> |
|
|
|
<if test="auditState != '' and auditState != null"> |
|
|
|
AND AUDIT_STATE = #{auditState} |
|
|
|
</if> |
|
|
|
<if test="streetId != '' and streetId != null"> |
|
|
|
AND (find_in_set(#{streetId},PARENT_DEPT_IDS) |
|
|
|
OR find_in_set(#{streetId},ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="communityId != '' and communityId != null"> |
|
|
|
AND (find_in_set(#{communityId},PARENT_DEPT_IDS) |
|
|
|
OR find_in_set(#{communityId},ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="gridId != '' and gridId != null"> |
|
|
|
and find_in_set(#{gridId},ALL_DEPT_IDS) |
|
|
|
</if> |
|
|
|
order by CREATED_TIME desc |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|