From a4ff6ea9260c42293cb0d37b4e93ce45c9f61bf7 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sat, 09 Dec 2023 10:09:34 +0800
Subject: [PATCH] 无用字段去除
---
src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml | 37 +++++++------------------------------
1 files changed, 7 insertions(+), 30 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 a79c897..77c4a7c 100644
--- a/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml
+++ b/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml
@@ -15,7 +15,6 @@
ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING( bu.cardid,7,4),0) age,
bu1.real_name applyName,
bt1.dept_name applyUnit,
- bu.registered,
bu.user_type userType
FROM
sys_accreditation_records sar
@@ -343,38 +342,16 @@
ifnull(DATE_FORMAT(NOW(), '%Y') - SUBSTRING( bu.cardid,7,4),0) age,
bu1.real_name applyName,
bt1.dept_name applyUnit,
- bu.registered,
bu.user_type userType
FROM
sys_accreditation_records sar
- left join
- 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
- and bu.status = 1
- and bu.is_deleted = 0
+ left join 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 and bu.status = 1 and bu.is_deleted = 0
<if test="accreditationRecords.deptName!=null and accreditationRecords.deptName!=''">
and bt.dept_name like concat('%', #{accreditationRecords.deptName},'%')
</if>
--
Gitblit v1.9.3