-- 堆垛机出库是否必须校验出库站可出信号
-- Y: 必须校验站点可出信号后才允许下发出库任务
-- N: 不校验站点可出信号，堆垛机直接下发出库任务

INSERT INTO sys_config(name, code, value, type, status, select_type)
SELECT '堆垛机出库校验出库站可出信号', 'crnOutRequireStationOutEnable', 'Y', 1, 1, 'crn'
FROM dual
WHERE NOT EXISTS (
    SELECT 1
    FROM sys_config
    WHERE code = 'crnOutRequireStationOutEnable'
);

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