From 2fde25922c84f41e482f473f508a08f5fc3cdf23 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 10 Jan 2024 13:55:21 +0800
Subject: [PATCH] 发证时间查询
---
src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml | 3 +++
1 files changed, 3 insertions(+), 0 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 0742d25..68101d2 100644
--- a/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml
+++ b/src/main/java/org/springblade/modules/accreditation/mapper/AccreditationRecordsMapper.xml
@@ -33,6 +33,9 @@
WHERE 1=1
and bu.status = 1
and bu.is_deleted = 0
+ <if test="accreditationRecords.userPaperTime != null and accreditationRecords.userPaperTime !=''">
+ AND DATE_FORMAT(bu.paper_time,'%Y-%m-%d') = #{accreditationRecords.userPaperTime}
+ </if>
<if test="accreditationRecords.deptName!=null and accreditationRecords.deptName!=''">
and bt.dept_name like concat('%', #{accreditationRecords.deptName},'%')
</if>
--
Gitblit v1.9.3