Files
huachuang/sql/mysql/wms_track_section_strategy.sql
2026-09-24 14:17:42 +08:00

19 lines
1.3 KiB
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.

-- 出入库分配模式。standardAllocation 保持现有逻辑;trackSectionAllocation 启用双轨分段逻辑。
INSERT INTO wms_warehouse_strategy_config
(id, strategy_code, strategy_name, strategy_type, class_type, param, remark,
is_used, ban, form_data, creator, create_time, updater, update_time, deleted)
SELECT 2079500000000000001, 'standardAllocation', '标准出入库分配', 'base', '1', '{}',
'沿用现有入库货位排序、出库通道和CK01/CK02负载均衡逻辑',
1, 1, NULL, '1', NOW(), '1', NOW(), 0
WHERE NOT EXISTS (SELECT 1 FROM wms_warehouse_strategy_config
WHERE strategy_code = 'standardAllocation' AND deleted = 0);
INSERT INTO wms_warehouse_strategy_config
(id, strategy_code, strategy_name, strategy_type, class_type, param, remark,
is_used, ban, form_data, creator, create_time, updater, update_time, deleted)
SELECT 2079500000000000002, 'trackSectionAllocation', '双轨分段出入库', 'base', '1', '{}',
'双侧轨道货位按上下两段出库;入库货位从区段中间向上下两侧分配',
1, 1, NULL, '1', NOW(), '1', NOW(), 0
WHERE NOT EXISTS (SELECT 1 FROM wms_warehouse_strategy_config
WHERE strategy_code = 'trackSectionAllocation' AND deleted = 0);