insert into return_pay_fee(
reason,prime_rate,fee_type_cd,pay_time,detail_id,receivable_amount,cycles,remark,received_amount,
fee_id,return_fee_id,config_id,state,community_id,apply_person_id,apply_person_name
) values (
#{reason},#{primeRate},#{feeTypeCd},#{payTime},#{detailId},#{receivableAmount},#{cycles},#{remark},#{receivedAmount},
#{feeId},#{returnFeeId},#{configId},#{state},#{communityId},#{applyPersonId},#{applyPersonName}
)
update return_pay_fee t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.reason= #{reason}
, t.prime_rate= #{primeRate}
, t.fee_type_cd= #{feeTypeCd}
, t.secondary_fee_type_cd= #{secondaryFeeTypeCd}
, t.pay_time= #{payTime}
, t.detail_id= #{detailId}
, t.receivable_amount= #{receivableAmount}
, t.cycles= #{cycles}
, t.remark= #{remark}
, t.received_amount= #{receivedAmount}
, t.fee_id= #{feeId}
, t.config_id= #{configId}
, t.state= #{state}
, t.community_id= #{communityId}
, t.audit_person_id= #{auditPersonId}
, t.audit_person_name= #{auditPersonName}
where 1=1
and t.return_fee_id= #{returnFeeId}