From 5fb3c5b006a75633d78f0ada8757c45c391055d4 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期日, 28 九月 2025 15:19:53 +0800
Subject: [PATCH] 新增时间范围查询

---
 service/src/main/resources/mapper/cwgl/RequestLogMapper.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/service/src/main/resources/mapper/cwgl/RequestLogMapper.xml b/service/src/main/resources/mapper/cwgl/RequestLogMapper.xml
index 83062d9..8c7c17b 100644
--- a/service/src/main/resources/mapper/cwgl/RequestLogMapper.xml
+++ b/service/src/main/resources/mapper/cwgl/RequestLogMapper.xml
@@ -27,7 +27,8 @@
         <if test="driverCode != null  and driverCode != ''"> and thisTab.driver_code = #{driverCode}</if>
         <if test="driverName != null  and driverName != ''"> and  thisTab.driver_name like concat('%', #{driverName}, '%')</if>
         <if test="boxNum != null  and boxNum != ''"> and thisTab.box_num = #{boxNum}</if>
-        <if test="reqTime != null "> and thisTab.req_time = #{reqTime}</if>
+        <if test="reqTimeBegin != null and reqTimeBegin!='' and reqTimeEnd != null and reqTimeEnd!='' "> and thisTab.req_time between #{reqTimeBegin} and #{reqTimeEnd}</if>
+
         <if test="type != null "> and thisTab.type = #{type}</if>
         <if test="operation != null  and operation != ''"> and thisTab.operation = #{operation}</if>
     </sql>

--
Gitblit v1.8.0