From 7987c4f005f5bd8739411d08e4e3bfb67e4df9ef Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 01 十二月 2019 13:48:07 +0800
Subject: [PATCH] 优化设备脚本查询
---
java110-db/src/main/resources/mapper/fee/FeeDetailServiceDaoImplMapper.xml | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/fee/FeeDetailServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/fee/FeeDetailServiceDaoImplMapper.xml
index 2b890e9..4c418e4 100644
--- a/java110-db/src/main/resources/mapper/fee/FeeDetailServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/fee/FeeDetailServiceDaoImplMapper.xml
@@ -130,10 +130,18 @@
</if>
<if test="feeId !=null and feeId != ''">
and t.fee_id= #{feeId}
-</if>
+</if>
+ <if test="startTime !=null ">
+ and t.create_time >= #{startTime}
+ </if>
+ <if test="endTime !=null ">
+ and t.create_time <= #{endTime}
+ </if>
+ order by t.create_time desc
<if test="page != -1 and page != null ">
limit #{page}, #{row}
-</if>
+</if>
+
</select>
@@ -210,7 +218,13 @@
</if>
<if test="feeId !=null and feeId != ''">
and t.fee_id= #{feeId}
-</if>
+</if>
+ <if test="startTime !=null ">
+ and t.create_time >= #{startTime}
+ </if>
+ <if test="endTime !=null ">
+ and t.create_time <= #{endTime}
+ </if>
</select>
--
Gitblit v1.8.0