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

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