| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="payFeeRuleBillV1ServiceDaoImpl">
- <!-- 保存费用账单信息 add by wuxw 2018-07-03 -->
- <insert id="savePayFeeRuleBillInfo" parameterType="Map">
- insert into pay_fee_rule_bill(
- bill_name,config_id,bill_id,cur_year_month,remark,rule_id,community_id,batch_id,fee_id
- ) values (
- #{billName},#{configId},#{billId},#{curYearMonth},#{remark},#{ruleId},#{communityId},#{batchId},#{feeId}
- )
- </insert>
- <!-- 查询费用账单信息 add by wuxw 2018-07-03 -->
- <select id="getPayFeeRuleBillInfo" parameterType="Map" resultType="Map">
- select t.bill_name,t.bill_name billName,t.config_id,t.config_id configId,t.bill_id,t.bill_id
- billId,t.cur_year_month,t.cur_year_month curYearMonth,t.status_cd,t.status_cd
- statusCd,t.remark,t.rule_id,t.rule_id ruleId,t.community_id,t.community_id communityId,t.batch_id,t.batch_id
- batchId,t.fee_id,t.fee_id feeId
- from pay_fee_rule_bill t
- where 1 =1
- <if test="billName !=null and billName != ''">
- and t.bill_name= #{billName}
- </if>
- <if test="configId !=null and configId != ''">
- and t.config_id= #{configId}
- </if>
- <if test="billId !=null and billId != ''">
- and t.bill_id= #{billId}
- </if>
- <if test="curYearMonth !=null and curYearMonth != ''">
- and t.cur_year_month= #{curYearMonth}
- </if>
- <if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
- </if>
- <if test="remark !=null and remark != ''">
- and t.remark= #{remark}
- </if>
- <if test="ruleId !=null and ruleId != ''">
- and t.rule_id= #{ruleId}
- </if>
- <if test="communityId !=null and communityId != ''">
- and t.community_id= #{communityId}
- </if>
- <if test="batchId !=null and batchId != ''">
- and t.batch_id= #{batchId}
- </if>
- <if test="feeId !=null and feeId != ''">
- and t.fee_id= #{feeId}
- </if>
- order by t.create_time desc
- <if test="page != -1 and page != null ">
- limit #{page}, #{row}
- </if>
- </select>
- <!-- 修改费用账单信息 add by wuxw 2018-07-03 -->
- <update id="updatePayFeeRuleBillInfo" parameterType="Map">
- update pay_fee_rule_bill t set t.status_cd = #{statusCd}
- <if test="newBId != null and newBId != ''">
- ,t.b_id = #{newBId}
- </if>
- <if test="billName !=null and billName != ''">
- , t.bill_name= #{billName}
- </if>
- <if test="configId !=null and configId != ''">
- , t.config_id= #{configId}
- </if>
- <if test="curYearMonth !=null and curYearMonth != ''">
- , t.cur_year_month= #{curYearMonth}
- </if>
- <if test="remark !=null and remark != ''">
- , t.remark= #{remark}
- </if>
- <if test="ruleId !=null and ruleId != ''">
- , t.rule_id= #{ruleId}
- </if>
- <if test="communityId !=null and communityId != ''">
- , t.community_id= #{communityId}
- </if>
- <if test="batchId !=null and batchId != ''">
- , t.batch_id= #{batchId}
- </if>
- <if test="feeId !=null and feeId != ''">
- , t.fee_id= #{feeId}
- </if>
- where 1=1
- <if test="billId !=null and billId != ''">
- and t.bill_id= #{billId}
- </if>
- </update>
- <!-- 查询费用账单数量 add by wuxw 2018-07-03 -->
- <select id="queryPayFeeRuleBillsCount" parameterType="Map" resultType="Map">
- select count(1) count
- from pay_fee_rule_bill t
- where 1 =1
- <if test="billName !=null and billName != ''">
- and t.bill_name= #{billName}
- </if>
- <if test="configId !=null and configId != ''">
- and t.config_id= #{configId}
- </if>
- <if test="billId !=null and billId != ''">
- and t.bill_id= #{billId}
- </if>
- <if test="curYearMonth !=null and curYearMonth != ''">
- and t.cur_year_month= #{curYearMonth}
- </if>
- <if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
- </if>
- <if test="remark !=null and remark != ''">
- and t.remark= #{remark}
- </if>
- <if test="ruleId !=null and ruleId != ''">
- and t.rule_id= #{ruleId}
- </if>
- <if test="communityId !=null and communityId != ''">
- and t.community_id= #{communityId}
- </if>
- <if test="batchId !=null and batchId != ''">
- and t.batch_id= #{batchId}
- </if>
- <if test="feeId !=null and feeId != ''">
- and t.fee_id= #{feeId}
- </if>
- </select>
- </mapper>
|