| | |
| | | and jh.is_deleted = 0 |
| | | order by jh.id desc |
| | | </where> |
| | | |
| | | |
| | | </select> |
| | | |
| | | <select id="getAllHouseHold" resultMap="householdPageAndLabelMap"> |
| | |
| | | and jh.is_deleted = 0 |
| | | </where> |
| | | order by jh.create_time desc |
| | | limit 0,10000 |
| | | limit 0,20000 |
| | | </select> |
| | | |
| | | |
| | |
| | | <where> |
| | | <if test="household.communityCode != null and household.communityCode != ''"> |
| | | and jg.community_code = #{household.communityCode} |
| | | </if> |
| | | <if test="household.userId!=null"> |
| | | AND jg.grid_code IN ( SELECT DISTINCT jgm.grid_code FROM jczz_gridman jgm WHERE jgm.user_id = |
| | | #{household.userId} |
| | | ) |
| | | </if> |
| | | <if test="household.confirmFlag != null"> |
| | | and jh.confirm_flag = #{household.confirmFlag} |
| | |
| | | jczz_household jh |
| | | LEFT JOIN jczz_doorplate_address jda ON jh.house_code = jda.address_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 |
| | | and jda.doorplate_type = '户室牌' |
| | | <if test="userId != null and roleType == '1'"> |
| | |
| | | jczz_household jh |
| | | LEFT JOIN jczz_doorplate_address jda ON jh.house_code = jda.address_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 jda.doorplate_type = '户室牌' |
| | | AND jh.is_deleted = 0 |
| | | <if test="userId != null and roleType == '1'"> |