From 07afc8a40d7f80e59a7079271d8e9709191b8946 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 19 Dec 2023 15:21:42 +0800
Subject: [PATCH] 查询户籍地址
---
src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml | 30 ++++++++----------------------
1 files changed, 8 insertions(+), 22 deletions(-)
diff --git a/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml b/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml
index 77c4a7c..1f74690 100644
--- a/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml
+++ b/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml
@@ -12,6 +12,7 @@
bu.cardid idCardNo,
bu.securitynumber securityNumber,
bu.avatar,
+ bud.permanent_residence_address as registered,
ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING( bu.cardid,7,4),0) age,
bu1.real_name applyName,
bt1.dept_name applyUnit,
@@ -22,28 +23,13 @@
blade_user bu
on
sar.user_id = bu.id
- LEFT JOIN
- blade_dept bt
- ON
- bu.dept_id = bt.id
- left join
- blade_user bu1
- on
- sar.create_user = bu1.id
- LEFT JOIN
- blade_dept bt1
- ON
- bu1.dept_id = bt1.id
- left join
- sys_information si
- on
- bt.id = si.departmentid
- left join
- sys_jurisdiction sj
- on
- sj.id = si.jurisdiction
- WHERE
- 1=1
+ LEFT JOIN blade_user_detail bud ON bud.user_id = bu.id
+ LEFT JOIN blade_dept bt ON bu.dept_id = bt.id
+ left join blade_user bu1 on sar.create_user = bu1.id
+ LEFT JOIN blade_dept bt1 ON bu1.dept_id = bt1.id
+ left join sys_information si on bt.id = si.departmentid
+ left join sys_jurisdiction sj on sj.id = si.jurisdiction
+ WHERE 1=1
and bu.status = 1
and bu.is_deleted = 0
<if test="accreditationRecords.deptName!=null and accreditationRecords.deptName!=''">
--
Gitblit v1.9.3