 -- 计划订单分录物料新增组件替代方案
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_mrp_planorderentry' AND KSQL_COL_NAME ='Fentryreplaceplan') 
 ALTER TABLE t_mrp_planorderentry ADD (Fentryreplaceplan BIGINT DEFAULT 0 NOT NULL );