--数据升级，发票签收将京东单号放到分录后，升级数据

update T_PUR_INVOICENTRY2_A A set FENTRYJDORDERID = (select FJDORDER from T_PUR_INVOICE_A   where A.FID = FID and A.FENTRYJDORDERID=0)
WHERE EXISTS (SELECT 1 FROM T_PUR_INVOICE_A WHERE FID = A.FID and A.FENTRYJDORDERID=0);
