| | |
| | | <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> |
| | |
| | | ( SELECT |
| | | IF |
| | | ( |
| | | id_card IS NULL, |
| | | id_card IS NULL or id_card = '', |
| | | '未知', |
| | | IF |
| | | (SUBSTRING( id_card, 17, 1 ) % 2 = 1, '男', '女' )) AS gender |