From 16f75d66598c7eefa3cfa07bd1f8d3222a394898 Mon Sep 17 00:00:00 2001 From: ck-chenkang Date: Tue, 23 Jun 2026 15:18:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=A0=B7=E5=93=81=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7=E5=A7=93=E5=90=8D=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...026-06-23-bit-sample-wms-print-template-type-v3.sql | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sql/mysql/2026-06-23-bit-sample-wms-print-template-type-v3.sql b/sql/mysql/2026-06-23-bit-sample-wms-print-template-type-v3.sql index b74ccf441..31e7a0e43 100644 --- a/sql/mysql/2026-06-23-bit-sample-wms-print-template-type-v3.sql +++ b/sql/mysql/2026-06-23-bit-sample-wms-print-template-type-v3.sql @@ -6,12 +6,20 @@ INSERT INTO system_dict_data (sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) -SELECT 7, 'BIT样品标签', '7', 'print_template_type', 0, 'primary', '', 'qrcodeUrl,name,code', '1', NOW(), '1', NOW(), b'0' +SELECT 7, 'BIT样品标签', '7', 'print_template_type', 0, 'primary', '', 'qrcodeUrl,name,code,sampleCategory,customerName', '1', NOW(), '1', NOW(), b'0' WHERE NOT EXISTS ( SELECT 1 FROM system_dict_data WHERE dict_type = 'print_template_type' AND value = '7' ); +UPDATE system_dict_data +SET remark = 'qrcodeUrl,name,code,sampleCategory,customerName', + updater = '1', + update_time = NOW() +WHERE dict_type = 'print_template_type' + AND value = '7' + AND deleted = b'0'; + INSERT INTO system_dict_data (sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) SELECT 8, 'BIT库位标签', '8', 'print_template_type', 0, 'success', '', 'qrcodeUrl,name,code', '1', NOW(), '1', NOW(), b'0'