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 set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.amount= #{amount} , t.fee_type_cd= #{feeTypeCd} , t.batch_id= #{batchId} , t.user_id= #{userId} , t.income_obj_id= #{incomeObjId} , t.config_id= #{configId} , t.fee_flag= #{feeFlag} , t.start_time= #{startTime} , t.end_time= #{endTime} , t.state= #{state} , t.community_id= #{communityId} , t.payer_obj_type= #{payerObjType} , t.payer_obj_id= #{payerObjId} where 1=1 and t.fee_id= #{feeId}