--兼容中台付款单限额，不支持金额是负数的情况。已审核、货币互换、期初本金交换=实际本金 并且支付金额为空时，将收款方的期初本金交换金额的绝对值赋值给支付金额
update t_tm_trade_p p set fbuysettleamt=(select abs(e.frecinitexamount)  from t_tm_trade t,t_tm_trade_e e where p.fid=t.fid and t.fid=e.fid)
where fid in(select a.fid from t_tm_trade a,t_tm_trade_s s where a.fid=s.fid and a.fprotecttypeid=952722152971330560  and a.fbillstatus in ('B','C') and s.frateswaptype='currency' and s.finitpriextype='Actual' ) and (fbuysettleamt is null or fbuysettleamt = 0) ;