From 878b7d3bcddaf5bfff49d23796f3473c022853f5 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 29 Dec 2023 09:06:56 +0800
Subject: [PATCH] 时间倒叙,不然新打卡的,都要一页一页往下翻
---
src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml | 7 +++++++
1 files changed, 7 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..9cea11c 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,13 @@
<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>
+ order by jcir.create_time desc
</where>
</select>
--
Gitblit v1.9.3