chengf
2026-03-11 b88a288f4f787b509463678e3cd9ccfa3f37014b
java110-db/src/main/resources/mapper/fee/FeeServiceDaoImplMapper.xml
@@ -196,7 +196,7 @@
            and t.end_time > #{nowDate}
        </if>
        <if test="communityId !=null and communityId != ''">
            and t.community_id= #{communityId}
            and t.community_id in (#{communityId},'9999')
            and pfc.community_id in (#{communityId},'9999')
        </if>
        <if test="bId !=null and bId != ''">
@@ -204,6 +204,9 @@
        </if>
        <if test="feeId !=null and feeId != ''">
            and t.fee_id= #{feeId}
        </if>
        <if test="useFeeName !=null and useFeeName != ''">
            and pfc.fee_name like '%${useFeeName}%'
        </if>
        <if test="payerObjId !=null and payerObjId != ''">
            and (t.payer_obj_id= #{payerObjId} or t.contract_fee = #{payerObjId})
@@ -241,7 +244,12 @@
        <if test="contractFee != null">
            and t.contract_fee = ${contractFee}
        </if>
        <if test="useStart != null">
            and t.end_time &lt;= #{useStart}
        </if>
        <if test="useEnd != null">
            and DATE_ADD(STR_TO_DATE(pfa1.`value`, '%Y-%m-%d 23:59:59.%f'), INTERVAL 2 DAY) >= #{useEnd}
        </if>
        order by t.create_time desc
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
@@ -274,7 +282,7 @@
        <if test="endTime != null">
            and STR_TO_DATE(pfa1.`value`, '%Y-%m-%d %H:%i:%s.%f') = #{endTime}
        </if>
        <if test="community_id != null and community_id != ''">  <!-- 修正原条件中的变量错误 -->
        <if test="communityId != null and communityId != ''">  <!-- 修正原条件中的变量错误 -->
            and t.community_id = #{communityId}
            and pfc.community_id in (#{communityId}, '9999')
        </if>
@@ -290,7 +298,9 @@
        <if test="contractFee != null">
            and t.contract_fee = ${contractFee}
        </if>
        <if test="feeName != null">
            and pfc.fee_name = ${feeName}
        </if>
    </select>
    <!-- 修改费用信息 add by wuxw 2018-07-03 -->
@@ -955,7 +965,7 @@
          and t.community_id = #{communityId}
    </update>
    <select id="countValidPayFeeByConfigId" parameterType="Map" resultType="Integer">
        select count(1) from pay_fee where config_id = #{configId} and status_cd = 0
    <select id="countValidPayFeeByConfigId" parameterType="Map" resultType="Map">
        select count(1) count from pay_fee where config_id = #{configId} and state != 2009001
    </select>
</mapper>