| | |
| | | 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 != ''"> |
| | |
| | | and t.contract_fee = ${contractFee} |
| | | </if> |
| | | <if test="useStart != null"> |
| | | and t.start_time <= #{useStart} |
| | | and t.end_time <= #{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} |
| | |
| | | </update> |
| | | |
| | | <select id="countValidPayFeeByConfigId" parameterType="Map" resultType="Map"> |
| | | select count(1) count from pay_fee where config_id = #{configId} and status_cd = 0 |
| | | select count(1) count from pay_fee where config_id = #{configId} and state != 2009001 |
| | | </select> |
| | | </mapper> |