|
@ -58,7 +58,8 @@ |
|
|
ui.HOUSEHOLD_REGISTER_NAME householdRegisterName, |
|
|
ui.HOUSEHOLD_REGISTER_NAME householdRegisterName, |
|
|
if(ui.check_state='0','已检测','未检测') as checkStateName |
|
|
if(ui.check_state='0','已检测','未检测') as checkStateName |
|
|
from epidemic_user_info ui |
|
|
from epidemic_user_info ui |
|
|
-- left join epidemic_user_inout_record uir on ui.ID_CARD=uir.ID_CARD and uir.DEL_FLAG='0' |
|
|
LEFT JOIN epdc_house_resident hr on hr.RESIDENT_ID = ui.id |
|
|
|
|
|
left join epdc_housing_information hi on hi.id = hr.HOUSE_ID and hi.DEL_FLAG='0' |
|
|
where ui.DEL_FLAG='0' |
|
|
where ui.DEL_FLAG='0' |
|
|
<if test="checkState != null and checkState != '' and checkState== '0'.toString()"> |
|
|
<if test="checkState != null and checkState != '' and checkState== '0'.toString()"> |
|
|
and ui.check_state = #{checkState} |
|
|
and ui.check_state = #{checkState} |
|
@ -140,7 +141,18 @@ |
|
|
<if test="outLiveAddressName != null and outLiveAddressName.trim() != ''"> |
|
|
<if test="outLiveAddressName != null and outLiveAddressName.trim() != ''"> |
|
|
and uir.OUT_LIVE_ADDRESS_NAME like '%${outLiveAddressName}%' |
|
|
and uir.OUT_LIVE_ADDRESS_NAME like '%${outLiveAddressName}%' |
|
|
</if> |
|
|
</if> |
|
|
-- GROUP BY ui.ID |
|
|
<if test="streetId != '' and streetId != null"> |
|
|
|
|
|
AND (find_in_set(#{streetId},hi.PARENT_DEPT_IDS) |
|
|
|
|
|
OR find_in_set(#{streetId},hi.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="communityId != '' and communityId != null"> |
|
|
|
|
|
AND (find_in_set(#{communityId},hi.PARENT_DEPT_IDS) |
|
|
|
|
|
OR find_in_set(#{communityId},hi.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="gridId != '' and gridId != null"> |
|
|
|
|
|
and (hi.grid_id = #{gridId} |
|
|
|
|
|
OR find_in_set(#{gridId},hi.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
ORDER BY ui.UPDATED_TIME DESC |
|
|
ORDER BY ui.UPDATED_TIME DESC |
|
|
<if test="excelBigDataPageSize != null and excelBigDataPageIndex != null"> |
|
|
<if test="excelBigDataPageSize != null and excelBigDataPageIndex != null"> |
|
|
limit #{excelBigDataPageIndex},#{excelBigDataPageSize} |
|
|
limit #{excelBigDataPageIndex},#{excelBigDataPageSize} |
|
|