java110
2021-01-23 4430ceb824ac85a3b50108dadb2eac1e31d2c7d8
java110-db/src/main/resources/mapper/fee/FeeConfigServiceDaoImplMapper.xml
@@ -15,7 +15,6 @@
        )
    </insert>
    <!-- 查询费用配置信息(Business) add by wuxw 2018-07-03 -->
    <select id="getBusinessFeeConfigInfo" parameterType="Map" resultType="Map">
        select t.fee_type_cd,t.fee_type_cd feeTypeCd,t.computing_formula,t.computing_formula
@@ -51,7 +50,7 @@
            and t.fee_flag= #{feeFlag}
        </if>
        <if test="feeName !=null and feeName != ''">
            and t.fee_name= #{feeName}
            and t.fee_name like '%${feeName}%'
        </if>
        <if test="billType !=null and billType != ''">
            and t.bill_type= #{billType}
@@ -68,9 +67,7 @@
        <if test="bId !=null and bId != ''">
            and t.b_id= #{bId}
        </if>
    </select>
    <!-- 保存费用配置信息至 instance表中 add by wuxw 2018-07-03 -->
    <insert id="saveFeeConfigInfoInstance" parameterType="Map">
@@ -122,9 +119,7 @@
        <if test="bId !=null and bId != ''">
            and t.b_id= #{bId}
        </if>
    </insert>
    <!-- 查询费用配置信息 add by wuxw 2018-07-03 -->
    <select id="getFeeConfigInfo" parameterType="Map" resultType="Map">
@@ -171,13 +166,20 @@
            and t.fee_flag= #{feeFlag}
        </if>
        <if test="feeName !=null and feeName != ''">
            and t.fee_name= #{feeName}
            and t.fee_name like '%${feeName}%'
        </if>
        <if test="startTime !=null ">
            and t.start_time= #{startTime}
        </if>
        <if test="endTime !=null ">
            and t.end_time= #{endTime}
        </if>
        <if test="valid !=null and valid == 1">
            and t.end_time &gt; now()
        </if>
        <if test="curTime !=null ">
            and t.end_time &gt; #{curTime}
            and t.start_time &lt; #{curTime}
        </if>
        <if test="communityId !=null and communityId != ''">
            and t.community_id= #{communityId}
@@ -198,9 +200,7 @@
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
    </select>
    <!-- 修改费用配置信息 add by wuxw 2018-07-03 -->
    <update id="updateFeeConfigInfoInstance" parameterType="Map">
@@ -254,7 +254,6 @@
        <if test="bId !=null and bId != ''">
            and t.b_id= #{bId}
        </if>
    </update>
    <!-- 查询费用配置数量 add by wuxw 2018-07-03 -->
@@ -296,13 +295,16 @@
            and t.fee_flag= #{feeFlag}
        </if>
        <if test="feeName !=null and feeName != ''">
            and t.fee_name= #{feeName}
            and t.fee_name like '%${feeName}%'
        </if>
        <if test="startTime !=null ">
            and t.start_time= #{startTime}
        </if>
        <if test="endTime !=null ">
            and t.end_time= #{endTime}
        </if>
        <if test="valid !=null and valid == 1">
            and t.end_time &gt; now()
        </if>
        <if test="communityId !=null and communityId != ''">
            and t.community_id= #{communityId}
@@ -319,8 +321,16 @@
        <if test="billType !=null and billType != ''">
            and t.bill_type= #{billType}
        </if>
    </select>
    <!-- 保存费用配置信息 add by wuxw 2018-07-03 -->
    <insert id="saveFeeConfig" parameterType="Map">
        insert into pay_fee_config(
        fee_type_cd,computing_formula,additional_amount,status_cd,square_price,is_default,config_id,fee_flag,fee_name,
        start_time,end_time,community_id,b_id,bill_type,payment_cd,payment_cycle
        ) values (
        #{feeTypeCd},#{computingFormula},#{additionalAmount},'0',#{squarePrice},#{isDefault},#{configId},
        #{feeFlag},#{feeName},#{startTime},#{endTime},#{communityId},'-1',#{billType},#{paymentCd},#{paymentCycle}
        )
    </insert>
</mapper>