From 2bd69d1dca40d2fdf07f72e0117d2f0febde5359 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sat, 23 Dec 2023 15:27:02 +0800
Subject: [PATCH] 新增民警楼盘,功能数据过滤
---
src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml b/src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml
index 2bf9754..b2ac464 100644
--- a/src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml
+++ b/src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml
@@ -35,6 +35,12 @@
<if test="checkInRecords.address != null and checkInRecords.address != ''"> and jcir.address = #{checkInRecords.address}</if>
<if test="checkInRecords.deletedFlag != null "> and jcir.deleted_flag = #{checkInRecords.deletedFlag}</if>
<if test="checkInRecords.name != null and checkInRecords.name !='' "> and bu.name like concat('%',#{checkInRecords.name},'%') </if>
+ <if test="checkInRecords.startTime!=null and checkInRecords.startTime!=''">
+ AND date_format(jcir.create_time,'%Y-%m-%d')>= #{checkInRecords.startTime}
+ </if>
+ <if test="checkInRecords.endTime!=null and checkInRecords.endTime!=''">
+ AND date_format(jcir.create_time,'%Y-%m-%d')<= #{checkInRecords.endTime}
+ </if>
</where>
</select>
--
Gitblit v1.9.3