From 682155f2b55640ceb9e20a6f101ef0a08bc6e285 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Mon, 25 Dec 2023 14:36:31 +0800
Subject: [PATCH] 用户性别展示
---
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml b/src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml
index 693bec8..2b2f478 100644
--- a/src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml
+++ b/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
--
Gitblit v1.9.3