--委外完工入库增加 是否已生成暂估应付单 字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMCMPLINBILL' AND KSQL_COL_NAME ='FHASAPBUSBILL')
 ALTER TABLE T_IM_MDC_OMCMPLINBILL ADD (FHASAPBUSBILL CHAR(1) DEFAULT '0' NOT NULL );