From 5b8057a1fedaca8d4a6bc5ce3e59de1728e64fe6 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 22 Dec 2023 10:06:42 +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')&gt;= #{checkInRecords.startTime}
+            </if>
+            <if test="checkInRecords.endTime!=null and checkInRecords.endTime!=''">
+                AND date_format(jcir.create_time,'%Y-%m-%d')&lt;= #{checkInRecords.endTime}
+            </if>
         </where>
 
     </select>

--
Gitblit v1.9.3