/*差旅报销单-行程分录多出差人表历史数据升级 wenyue_chi*/

DELETE from t_er_tripreimbursepartner where fpkid in (SELECT t.FENTRYID FROM T_ER_ReimburseTripEntry T WHERE t.FID IN (SELECT t.fid FROM T_ER_REIMBURSEBILL t));
insert into t_er_tripreimbursepartner (fpkid,fentryid,FBASEDATAID) SELECT t.FENTRYID ,t.FENTRYID,T.FTRAVELERID FROM T_ER_ReimburseTripEntry T WHERE t.FID IN (SELECT t.fid FROM T_ER_REIMBURSEBILL t);
