/*发票签收物料分录电商订单ID数据升级*/
IF EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_INVOICENTRY2_A' AND KSQL_COL_NAME ='FECORDER')
UPDATE T_PUR_INVOICENTRY2_A SET FECORDER = FENTRYJDORDERID WHERE FENTRYJDORDERID <> 0 and  FECORDER = ' ';