--库存查询配置添加“必须勾选单据体查询”设置
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_INVQUERYCONF' AND KSQL_COL_NAME IN ('FMUSTSELECTENTRY')) 
ALTER TABLE T_IM_INVQUERYCONF ADD (FMUSTSELECTENTRY CHAR(1) DEFAULT '0' NOT NULL);