--将付款申请对应的票面信息分录新加字段来源单据行历史数据设置值
UPDATE T_CAS_PAYBILLENTRY A  SET FSRCBILLID = (SELECT FENTRYID FROM  T_CAS_PAYINFOENTRY B WHERE B.FID = A.FID AND B.FSEQ = A.FSRCBILLINDEX  ) WHERE A.FSRCBILLTYPE ='cas_payapplybill';