| | |
| | | <if test="household.confirmFlag != null "> |
| | | and jh.confirm_flag = #{household.confirmFlag} |
| | | </if> |
| | | |
| | | <if test="household.townStreetName!=null and household.townStreetName!=''"> |
| | | and jda.town_street_name like concat('%',#{household.townStreetName},'%') |
| | | </if> |
| | | <if test="household.neiName!=null and household.neiName!=''"> |
| | | and jda.nei_name like concat('%',#{household.neiName},'%') |
| | | </if> |
| | | <if test="household.housingRentalId != null "> |
| | | and jh.housing_rental_id = #{household.housingRentalId} |
| | | </if> |
| | |
| | | LEFT JOIN jczz_property_company_district jpcd on jpcd.district_id=jd.id |
| | | WHERE 1=1 |
| | | AND jda.address_code = #{household.houseCode} |
| | | limit 1 |
| | | </select> |
| | | |
| | | <!--查询网格--> |
| | |
| | | ( SELECT |
| | | IF |
| | | ( |
| | | id_card IS NULL, |
| | | id_card IS NULL or id_card = '', |
| | | '未知', |
| | | IF |
| | | (SUBSTRING( id_card, 17, 1 ) % 2 = 1, '男', '女' )) AS gender |