-- 代发单 代发分录 新增 初始代发单分录id
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_AGENTPAYBILLENTRY' AND KSQL_COL_NAME IN ('FORIGINALAGENTENTRYID')) 
 ALTER TABLE T_CAS_AGENTPAYBILLENTRY ADD (FORIGINALAGENTENTRYID BIGINT DEFAULT 0 NOT NULL );
