IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_er_reimctlapplybill' AND KSQL_COL_NAME ='FCOSTDEPTID')
ALTER TABLE t_er_reimctlapplybill
    ADD (FCOSTDEPTID BIGINT DEFAULT 0 NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_er_reimctlapplybill' AND KSQL_COL_NAME ='FCOSTCOMPANYID')
ALTER TABLE t_er_reimctlapplybill
    ADD (FCOSTCOMPANYID BIGINT DEFAULT 0 NOT NULL);

