/*更新费用收款信息分录的承担公司的历史数据 默认取单头的费用承担公司*/
update t_er_accountinfo acc set facccostcompany  = (select bill.fcostcompanyid from t_er_dailyreimbursebill bill where acc.fid = bill.fid) where exists(select bill.fcostcompanyid from t_er_dailyreimbursebill bill where acc.fid = bill.fid);
update t_er_reimaccountentry acc set facccostcompany  = (select bill.fcostcompanyid  from t_er_reimbursebill bill where  acc.fid = bill.fid) where  exists(select bill.fcostcompanyid  from t_er_reimbursebill bill where  acc.fid = bill.fid);
