IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME ='FAPPLIERID') 
 ALTER TABLE T_ER_CHECKINGPAY ADD (FAPPLIERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME ='FAPPLIERDEPTID') 
 ALTER TABLE T_ER_CHECKINGPAY ADD (FAPPLIERDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME ='FAPPLIERCOMPANYID') 
 ALTER TABLE T_ER_CHECKINGPAY ADD (FAPPLIERCOMPANYID BIGINT DEFAULT 0 NOT NULL );