-- BIT 样品仓静默打印业务场景补充 v4
-- 说明：
-- 1. 2026-06-22-bit-sample-wms.sql 已作为种子执行后，不再修改原文件。
-- 2. 本文件补充打印机配置管理使用的 mes_business_scenario 字典数据。
-- 3. print_template_type 仍由 v3 文件维护：7 = BIT样品标签，8 = BIT库位标签。

INSERT INTO system_dict_data
  (sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted)
SELECT 90, 'BIT样品标签打印', 'BIT_SAMPLE_LABEL_PRINT', 'mes_business_scenario', 0, 'primary', '', 'BIT样品仓样品标签静默打印', '1', NOW(), '1', NOW(), b'0'
WHERE NOT EXISTS (
  SELECT 1 FROM system_dict_data
  WHERE dict_type = 'mes_business_scenario' AND value = 'BIT_SAMPLE_LABEL_PRINT'
);

INSERT INTO system_dict_data
  (sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted)
SELECT 91, 'BIT库位标签打印', 'BIT_LOCATION_LABEL_PRINT', 'mes_business_scenario', 0, 'success', '', 'BIT样品仓库位标签静默打印', '1', NOW(), '1', NOW(), b'0'
WHERE NOT EXISTS (
  SELECT 1 FROM system_dict_data
  WHERE dict_type = 'mes_business_scenario' AND value = 'BIT_LOCATION_LABEL_PRINT'
);
