
/** 暂估 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_BUSBILL_E' AND KSQL_COL_NAME ='fcoopstatus')
 ALTER TABLE T_AP_BUSBILL_E ADD (fcoopstatus VARCHAR(30) DEFAULT 'A' NOT NULL );
/** 财务 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_FINAPBILL_E' AND KSQL_COL_NAME ='fcoopstatus')
 ALTER TABLE T_AP_FINAPBILL_E ADD (fcoopstatus VARCHAR(30) DEFAULT 'A' NOT NULL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_FINAPBILLDETAILENTRY' AND KSQL_COL_NAME ='FBIZCOOPNO')
 ALTER TABLE T_AP_FINAPBILLDETAILENTRY ADD (FBIZCOOPNO NVARCHAR(50) DEFAULT ' ' NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_FINAPBILLDETAILENTRY' AND KSQL_COL_NAME ='FBIZCOOPENTRYID')
 ALTER TABLE T_AP_FINAPBILLDETAILENTRY ADD (FBIZCOOPENTRYID BIGINT DEFAULT 0 NOT NULL );


 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_BUSBILLENTRY' AND KSQL_COL_NAME ='FBIZCOOPNO')
 ALTER TABLE T_AP_BUSBILLENTRY ADD (FBIZCOOPNO NVARCHAR(50) DEFAULT ' ' NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_BUSBILLENTRY' AND KSQL_COL_NAME ='FBIZCOOPENTRYID')
 ALTER TABLE T_AP_BUSBILLENTRY ADD (FBIZCOOPENTRYID BIGINT DEFAULT 0 NOT NULL );
