-- 平衡利库匹配明细 ，新增字段
-- 库存状态字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_BALINV_DETAILENTRY' AND KSQL_COL_NAME ='FINVSTATUSID')
 ALTER TABLE T_IM_BALINV_DETAILENTRY ADD (FINVSTATUSID BIGINT DEFAULT 0 NOT NULL);
