-- 输送站点分段命令提前下发比例
-- 支持 0.3 / 30 / 30% 三种写法，代码侧会统一转换为 0~1 区间比例

INSERT INTO sys_config(name, code, value, type, status, select_type)
SELECT '输送站点分段提前下发比例', 'stationCommandSegmentAdvanceRatio', '0.3', 1, 1, 'system'
FROM dual
WHERE NOT EXISTS (
    SELECT 1
    FROM sys_config
    WHERE code = 'stationCommandSegmentAdvanceRatio'
);

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