From 25d9d2e1a9eaa7c0b098a225dc1fcf149bac7fbe Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期一, 08 七月 2019 22:44:12 +0800
Subject: [PATCH] 修改映射管理sql配置 key 加入引号问题
---
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