| | |
| | | and jhs.district_code = #{household.aoiCode} |
| | | </if> |
| | | and jh.is_deleted = 0 |
| | | and jg.grid_code is not null |
| | | order by jh.id desc |
| | | </where> |
| | | |
| | |
| | | and jh.is_deleted = 0 |
| | | </where> |
| | | order by jh.create_time desc |
| | | limit 0,10000 |
| | | limit 0,20000 |
| | | </select> |
| | | |
| | | |
| | |
| | | <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} |
| | | </if> |