| | |
| | | </select> |
| | | |
| | | |
| | | <select id="getKeynotePersonnelPage" resultType="org.springblade.modules.house.vo.HouseholdVO"> |
| | | <select id="getKeynotePersonnelPage" resultMap="householdPageAndLabelMap"> |
| | | |
| | | SELECT |
| | | jh.id, |
| | |
| | | <if test="household.aoiCode!=null and household.aoiCode!=''"> |
| | | and jhs.district_code = #{household.aoiCode} |
| | | </if> |
| | | AND EXISTS ( |
| | | SELECT |
| | | * |
| | | FROM |
| | | jczz_user_house_label juhl |
| | | LEFT JOIN jczz_label jl ON juhl.label_id = jl.id |
| | | WHERE |
| | | juhl.lable_type = 1 |
| | | AND jl.parent_id = 103 |
| | | AND juhl.household_id = jh.id |
| | | AND juhl.label_id IS NOT NULL |
| | | ) |
| | | and jh.is_deleted = 0 |
| | | order by jh.create_time desc |
| | | </where> |