You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
besure_server/sql/mysql/2026-06-23-bit-sample-wms-s...

22 lines
1.2 KiB
SQL

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

-- 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'
);