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 | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/fee/FeeDetailServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/fee/FeeDetailServiceDaoImplMapper.xml
index 42818ce..4c418e4 100644
--- a/java110-db/src/main/resources/mapper/fee/FeeDetailServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/fee/FeeDetailServiceDaoImplMapper.xml
@@ -96,7 +96,9 @@
<!-- 鏌ヨ璐圭敤鏄庣粏淇℃伅 add by wuxw 2018-07-03 -->
<select id="getFeeDetailInfo" parameterType="Map" resultType="Map">
- select t.prime_rate,t.prime_rate primeRate,t.detail_id,t.detail_id detailId,t.receivable_amount,t.receivable_amount receivableAmount,t.cycles,t.remark,t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount receivedAmount,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.fee_id,t.fee_id feeId
+ select t.prime_rate,t.prime_rate primeRate,t.detail_id,t.detail_id detailId,t.receivable_amount,t.receivable_amount receivableAmount,
+ t.cycles,t.remark,t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount receivedAmount,t.community_id,
+ t.community_id communityId,t.b_id,t.b_id bId,t.fee_id,t.fee_id feeId ,t.create_time createTime
from pay_fee_detail t
where 1 =1
<if test="primeRate !=null and primeRate != ''">
@@ -128,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>
@@ -208,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