--历史数据处理--
INSERT INTO T_BEI_MATCHDETAILENTRY(FID,FETRANSDETAILID,FEBANKCHECKFLAG,FENTRYID)  SELECT FID,FTRANSDETAILID,FBANKCHECKFLAG,FID FROM T_BEI_ELECRECEIPT WHERE FTRANSDETAILID !=0 and T_BEI_ELECRECEIPT.fid not in( select fid from T_BEI_MATCHDETAILENTRY);