/** 还款单 添加核定金额 核定金额本位币   单头核定金额本位币合计**/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTBILL' AND KSQL_COL_NAME ='FAPPROVEAMOUNT')
ALTER TABLE T_ER_REPAYMENTBILL ADD (FAPPROVEAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTENTRY' AND KSQL_COL_NAME ='FORIREPAYAPPROVEAMOUNT')
ALTER TABLE T_ER_REPAYMENTENTRY ADD (FORIREPAYAPPROVEAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTENTRY' AND KSQL_COL_NAME ='FREPAYAPPROVEAMOUNT')
ALTER TABLE T_ER_REPAYMENTENTRY ADD (FREPAYAPPROVEAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );