chengf
2025-08-13 f851a15d7bec9a7afee514f6896532b3b5e2433e
java110-db/src/main/resources/mapper/fee/PayFeeConfigDiscountServiceDaoImplMapper.xml
@@ -7,7 +7,7 @@
    <!-- 保存费用项折扣信息 add by wuxw 2018-07-03 -->
    <insert id="savePayFeeConfigDiscountInfo" parameterType="Map">
        insert into pay_fee_config_discount(
        config_discount_id,config_id,discount_id,community_id,start_time,end_time,paymax_end_time
        config_discount_id,config_id,discount_id,community_id,start_time,end_time,paymax_end_time,pay_max_star_time
        ) values (
        #{configDiscountId},#{configId},#{discountId},#{communityId},
                  <if test="startTime == ''">
@@ -17,13 +17,26 @@
                        #{startTime}
                    </if>
                  ,
                  <if test="endTime == ''">
                      NULL
                  </if>
                    <if test="endTime != ''">
                        #{endTime}
                    </if>
                  ,#{payMaxEndTime}
        <if test="endTime == ''">
            NULL
        </if>
        <if test="endTime != ''">
            #{endTime}
        </if>
        ,
        <if test="payMaxEndTime == ''">
            NULL
        </if>
        <if test="payMaxEndTime != ''">
            #{payMaxEndTime}
        </if>
        ,
        <if test="payMaxStarTime == ''">
            #{payMaxStarTime}
        </if>
        <if test="payMaxStarTime != ''">
            #{endTime}
        </if>
        )
    </insert>
@@ -31,7 +44,7 @@
    <select id="getPayFeeConfigDiscountInfo" parameterType="Map" resultType="Map">
        select t.config_discount_id,t.config_discount_id configDiscountId,t.config_id,t.config_id
        configId,t.status_cd,t.status_cd statusCd,t.discount_id,t.discount_id discountId,t.community_id,t.community_id
        communityId,fd.discount_name discountName,fd.discount_type discountType,t.start_time startTime,t.end_time endTime,t.paymax_end_time payMaxEndTime
        communityId,fd.discount_name discountName,fd.discount_type discountType,t.start_time startTime,t.end_time endTime,t.paymax_end_time payMaxEndTime,t.pay_max_star_time payMaxStarTime
        from pay_fee_config_discount t
        left join fee_discount fd on t.discount_id = fd.discount_id and t.community_id = fd.community_id and fd.status_cd = '0'
        where 1 =1
@@ -77,6 +90,9 @@
        <if test="communityId !=null and communityId != ''">
            , t.community_id= #{communityId}
        </if>
        <if test="payMaxStarTime !=null and payMaxStarTime != ''">
            , t.pay_max_star_time= #{payMaxStarTime}
        </if>
        where 1=1
        <if test="configDiscountId !=null and configDiscountId != ''">
            and t.config_discount_id= #{configDiscountId}