| | |
| | | jczz_house jh |
| | | LEFT JOIN jczz_doorplate_address jda ON jda.address_code = jh.house_code |
| | | <where> |
| | | jda.nei_code in |
| | | <foreach collection="communityCodeList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | <if test="communityCodeList != null and communityCodeList.size()>0"> |
| | | jda.nei_code in |
| | | <foreach collection="communityCodeList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </if> |
| | | AND jh.is_deleted = 0 |
| | | <if test="buildingCode != null and buildingCode != ''"> |
| | | and jda.building_code=#{buildingCode} |
| | |
| | | LEFT JOIN jczz_police_affairs_grid jpag on jh.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0 |
| | | LEFT JOIN jczz_user_house_label juhl ON juhl.house_code = jh.house_code and juhl.lable_type = 2 |
| | | where jda.doorplate_type = '户室牌' |
| | | <if test="communityCodeList != null"> |
| | | <if test="communityCodeList !=null and communityCodeList.size()>0"> |
| | | and jda.nei_code in |
| | | <foreach collection="communityCodeList" item="code" open="(" close=")" separator=","> |
| | | #{code} |