| | |
| | | and pfc.community_id in (#{communityId},'9999') |
| | | </if> |
| | | |
| | | <if test="isContractFee != null"> |
| | | and is_contract_fee = #{isContractFee} |
| | | </if> |
| | | <if test="isContractFee == null"> |
| | | and is_contract_fee IS NULL |
| | | </if> |
| | | |
| | | <if test="bId !=null and bId != ''"> |
| | | and t.b_id= #{bId} |
| | | </if> |
| | |
| | | <!-- 批量插入费用 --> |
| | | <insert id="insertFees" parameterType="Map"> |
| | | insert into pay_fee (amount,status_cd,income_obj_id,fee_type_cd,secondary_fee_type_cd,start_time,end_time,community_id,b_id,fee_id, |
| | | user_id,payer_obj_id,fee_flag,state,config_id,payer_obj_type,batch_id,is_contract_fee,contract_fee) |
| | | user_id,payer_obj_id,fee_flag,state,config_id,payer_obj_type,batch_id,is_contract_fee,contract_fee,create_time) |
| | | VALUES |
| | | <foreach collection="payFeePos" item="item" separator=","> |
| | | (#{item.amount},'0',#{item.incomeObjId},#{item.feeTypeCd},#{item.secondaryFeeTypeCd},#{item.startTime},#{item.endTime},#{item.communityId}, |
| | | '-1',#{item.feeId},#{item.userId},#{item.payerObjId},#{item.feeFlag},#{item.state},#{item.configId},#{item.payerObjType},#{item.batchId},#{item.isContractFee},#{item.contractFee}) |
| | | '-1',#{item.feeId},#{item.userId},#{item.payerObjId},#{item.feeFlag},#{item.state},#{item.configId},#{item.payerObjType},#{item.batchId},#{item.isContractFee},#{item.contractFee} |
| | | |
| | | <if test="item.createTime != null and item.createTime != ''"> |
| | | ,#{item.createTime} |
| | | </if> |
| | | <if test="item.createTime == null or item.createTime == ''"> |
| | | ,now() |
| | | </if> |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | | |