insert into pay_fee(amount, fee_type_cd, batch_id, fee_id, user_id, income_obj_id, config_id, fee_flag, start_time, end_time, state, community_id, payer_obj_type, payer_obj_id, b_id) values (#{amount}, #{feeTypeCd}, #{batchId}, #{feeId}, #{userId}, #{incomeObjId}, #{configId}, #{feeFlag}, #{startTime}, #{endTime}, #{state}, #{communityId}, #{payerObjType}, #{payerObjId}, #{bId}) update pay_fee t t.status_cd = #{statusCd}, t.amount= #{amount}, t.fee_type_cd= #{feeTypeCd}, t.batch_id= #{batchId}, t.user_id= #{userId}, t.income_obj_id= #{incomeObjId}, t.fee_flag= #{feeFlag}, t.start_time= #{startTime}, t.end_time= #{endTime}, t.state= #{state}, t.payer_obj_type= #{payerObjType}, t.payer_obj_id= #{payerObjId} where 1=1 and t.status_cd = '0' and t.fee_id= #{feeId} and t.community_id= #{communityId} and t.config_id= #{configId}