-- 出入库分配模式。 -- standardAllocation 保持现有逻辑;trackSectionAllocation 启用双轨分段逻辑; -- smallColumnInLargeColumnOutAllocation 入库从小列号开始、出库固定从大列号侧取货。 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', '{}', '沿用现有入库货位排序、出库通道和1013/1004负载均衡逻辑', 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); 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 2079500000000000003, 'smallColumnInLargeColumnOutAllocation', '小列入库大列出库', 'base', '1', '{}', '单双通统一按同库区、同块、同排、同层隔离;入库优先小列号,出库固定从大列号侧取货', 1, 1, NULL, '1', NOW(), '1', NOW(), 0 WHERE NOT EXISTS (SELECT 1 FROM wms_warehouse_strategy_config WHERE strategy_code = 'smallColumnInLargeColumnOutAllocation' AND deleted = 0);