insert into online_pay_refund(
refund_fee,busi_id,pay_id,state,message,refund_id,community_id
) values (
#{refundFee},#{busiId},#{payId},#{state},#{message},#{refundId},#{communityId}
)
update online_pay_refund t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.refund_fee= #{refundFee}
, t.busi_id= #{busiId}
, t.pay_id= #{payId}
, t.state= #{state}
, t.message= #{message}
where 1=1
and t.refund_id= #{refundId}
and t.community_id= #{communityId}