| | |
| | | jh.marital_status, |
| | | jh.card_number, |
| | | jh.other_contact, |
| | | jh.create_time, |
| | | jh.update_time, |
| | | IF |
| | | ( jda.id IS NOT NULL, jda.address_name, jh.current_address ) AS current_address, |
| | | jh.disability_cert, |
| | |
| | | and jhs.district_code = #{household.aoiCode} |
| | | </if> |
| | | and jh.is_deleted = 0 |
| | | order by jh.create_time desc |
| | | order by jh.id desc |
| | | </where> |
| | | |
| | | |
| | |
| | | jh.confirm_flag, |
| | | jh.housing_rental_id, |
| | | jh.volunteer_org, |
| | | jh.create_time, |
| | | jh.update_time, |
| | | if(jda.id is not null, substring(jda.town_street_code, 1, 9), jh.home_adcode) as home_adcode, |
| | | br1.name as residentAdName, |
| | | br1.province_code as residentProvinceAdCode, |
| | |
| | | <if test="household.confirmFlag != null "> |
| | | and jh.confirm_flag = #{household.confirmFlag} |
| | | </if> |
| | | <if test="household.relationship != null "> |
| | | and jh.relationship = #{household.relationship} |
| | | </if> |
| | | <if test="household.townStreetName!=null and household.townStreetName!=''"> |
| | | and jda.town_street_name like concat('%',#{household.townStreetName},'%') |
| | | </if> |