| | |
| | | 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 != ''"> |
| | |
| | | </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}) |
| | |
| | | <if test="contractFee != null"> |
| | | and t.contract_fee = ${contractFee} |
| | | </if> |
| | | |
| | | <if test="useStart != null"> |
| | | 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} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | |
| | | <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> |
| | |
| | | <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 --> |
| | |
| | | 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> |