Files
wq-wms-java/sql/20261020_work_order_outbound_strategy.sql

10 lines
758 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 先执行本脚本,再启动新后端;Decisioner启动时要求策略记录存在。
ALTER TABLE st_ivt_iostorinvdtl ADD COLUMN source_work_orders LONGTEXT NULL COMMENT '合并工单来源及BOM计划份额JSON';
INSERT INTO st_strategy_config
(id, strategy_code, strategy_name, strategy_type, class_type, form_data, remark, is_used, ban, is_delete)
SELECT 'platingWorkOrder', 'platingWorkOrder', '配盘物料上料口整托出库', '2', 'diy', '{}',
'物料和上料口匹配,支持混料整托超配、缺货部分分配', 1, 0, 0
WHERE NOT EXISTS (SELECT 1 FROM st_strategy_config WHERE strategy_code = 'platingWorkOrder');
-- 后台库区出库策略选择 platingWorkOrder;本策略独立使用,不再串接FIFO裁量策略。