/***还款单增加 还款类型、往来类型、往来单位**/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTBILL' AND KSQL_COL_NAME IN ('FREIMBURSETYPE'))
ALTER TABLE T_ER_REPAYMENTBILL ADD (FREIMBURSETYPE VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTBILL' AND KSQL_COL_NAME IN ('FBILLPAYERTYPE'))
ALTER TABLE T_ER_REPAYMENTBILL ADD (FBILLPAYERTYPE VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTBILL' AND KSQL_COL_NAME IN ('FBILLPAYERID'))
ALTER TABLE T_ER_REPAYMENTBILL ADD (FBILLPAYERID BIGINT DEFAULT 0 NOT NULL );

