From fa1a40ace8954ce1b8961bf1b25b7e4b7572e6ac Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 29 Dec 2023 09:54:53 +0800
Subject: [PATCH] bug修复
---
src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml | 8 +++++++-
1 files changed, 7 insertions(+), 1 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..d3df31d 100644
--- a/src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml
+++ b/src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml
@@ -35,8 +35,14 @@
<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>
-
+ order by jcir.create_time desc
</select>
<resultMap type="org.springblade.modules.checkInRecords.dto.CheckInRecordsDTO" id="CheckInRecordsDTOResult">
--
Gitblit v1.9.3