-- 费用差旅
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFO' AND KSQL_COL_NAME IN ('FENDORSEMENT'))
ALTER TABLE T_ER_INVOICEINFO ADD (FENDORSEMENT VARCHAR(255) DEFAULT ' ' NOT NULL );

-- 对公
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEINFO' AND KSQL_COL_NAME IN ('FENDORSEMENT'))
ALTER TABLE T_ER_PUBREIMINVOICEINFO ADD (FENDORSEMENT VARCHAR(255) DEFAULT ' ' NOT NULL );

-- 商旅付款申请
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFOCP' AND KSQL_COL_NAME IN ('FENDORSEMENT'))
ALTER TABLE T_ER_INVOICEINFOCP ADD (FENDORSEMENT VARCHAR(255) DEFAULT ' ' NOT NULL );