-- 堆垛机出库批次并发任务上限
-- 默认同一批次最多允许 5 个已启动但未完成的出库任务同时执行

INSERT INTO sys_config(name, code, value, type, status, select_type)
SELECT '堆垛机出库批次并发任务上限', 'crnOutBatchRunningLimit', '5', 1, 1, 'system'
FROM dual
WHERE NOT EXISTS (
    SELECT 1
    FROM sys_config
    WHERE code = 'crnOutBatchRunningLimit'
);

SELECT id, name, code, value, type, status, select_type
FROM sys_config
WHERE code = 'crnOutBatchRunningLimit';
