-- 对公报销
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMEXPDET_A' AND KSQL_COL_NAME ='FISOVERCHECK')
 ALTER TABLE T_ER_PUBREIMEXPDET_A ADD (FISOVERCHECK CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEINFO' AND KSQL_COL_NAME ='FINVEXCHANGERATE')
 ALTER TABLE T_ER_PUBREIMINVOICEINFO ADD (FINVEXCHANGERATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEINFO' AND KSQL_COL_NAME ='FINVEXPQUOTETYPE')
 ALTER TABLE T_ER_PUBREIMINVOICEINFO ADD (FINVEXPQUOTETYPE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEINFO' AND KSQL_COL_NAME ='FCURRTOTALAMOUNT')
 ALTER TABLE T_ER_PUBREIMINVOICEINFO ADD (FCURRTOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );