--分录添加字段计量单位、资产数量
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_APPLY_REPAIR_ENTRY' AND KSQL_COL_NAME IN ('FUNITID'))
 ALTER TABLE T_FA_APPLY_REPAIR_ENTRY ADD (FUNITID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_APPLY_REPAIR_ENTRY' AND KSQL_COL_NAME IN ('FASSETQTY'))
 ALTER TABLE T_FA_APPLY_REPAIR_ENTRY ADD (FASSETQTY DECIMAL(23,10) DEFAULT 0 NOT NULL );
