IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYAPPLYBILL' AND KSQL_COL_NAME IN ('FREFUNDANDREPAY'))
 ALTER TABLE T_CAS_PAYAPPLYBILL ADD (FREFUNDANDREPAY CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYINFOENTRY' AND KSQL_COL_NAME IN ('FENTRYREFUND'))
 ALTER TABLE T_CAS_PAYINFOENTRY ADD (FENTRYREFUND CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYINFOENTRY' AND KSQL_COL_NAME IN ('FENTRYREFUNDAMOUNT'))
 ALTER TABLE T_CAS_PAYINFOENTRY ADD (FENTRYREFUNDAMOUNT DECIMAL(19,4) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYINFOENTRY' AND KSQL_COL_NAME IN ('FRELARECBILLID'))
 ALTER TABLE T_CAS_PAYINFOENTRY ADD (FRELARECBILLID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYINFOENTRY' AND KSQL_COL_NAME IN ('FENTRYREMAINRFAMOUNT'))
 ALTER TABLE T_CAS_PAYINFOENTRY ADD (FENTRYREMAINRFAMOUNT DECIMAL(19,4) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYINFOENTRY' AND KSQL_COL_NAME IN ('FRELAENTRYID'))
 ALTER TABLE T_CAS_PAYINFOENTRY ADD (FRELAENTRYID BIGINT DEFAULT 0 NOT NULL );