吴学文
2019-07-09 cf5c100a7f818e3e704911c39c8595c2d6433cee
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 &gt;= #{startTime}
        </if>
        <if test="endTime !=null ">
            and t.create_time &lt;= #{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 &gt;= #{startTime}
         </if>
         <if test="endTime !=null ">
             and t.create_time &lt;= #{endTime}
         </if>
     </select>