zhongrj
2023-12-25 682155f2b55640ceb9e20a6f101ef0a08bc6e285
用户性别展示
1 files modified
8 ■■■■ changed files
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml 8 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml
@@ -115,7 +115,13 @@
    <!--自定义分页数据查询-->
    <select id="selectHouseholdPage" resultMap="householdPageAndLabelMap">
        select
        jh.*,
        jh.id,jh.house_code,jh.name,jh.phone_number,jh.associated_user_id,
        jh.role_type,jh.associated_user_name,jh.relationship,jh.is_primary_contact,
        jh.residential_status,jh.birthday,jh.id_card,jh.hkmt_pass,jh.passport,
        ifnull(jh.gender,case when substring(jh.id_card,17,1)%2=1 then 1 else 0 end) as gender,
        jh.ethnicity,jh.education,jh.hukou_registration,jh.work_status,employer,
        jh.marital_status,jh.card_number,jh.other_contact,jh.current_address,jh.disability_cert,
        jh.party_ember,jh.create_user,jh.create_time,jh.update_user,jh.update_time,jh.remark,
        jhs.district_name aoiName,
        concat(jhs.building," ",unit," ",room) as address,
        jda.town_street_name as townStreetName,jda.nei_name as neiName