初始代码

This commit is contained in:
hhh
2026-04-02 10:38:23 +08:00
parent d8b4140f50
commit aed67ce1fd
1937 changed files with 447678 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
-- =============================================
-- 领料单编码规则修改
-- 原格式SCLL + 6位流水号如 SCLL000659
-- 新格式SCLL + 8位日期 + 3位流水号如 SCLL20260107001
-- 不同日期流水号从001开始
-- =============================================
-- 删除旧的领料单编码规则子项
DELETE FROM sys_code_rule_entry WHERE rule_id = 10;
-- 插入新的编码规则子项
-- 第1项常量 SCLLsort=1
INSERT INTO sys_code_rule_entry (rule_id, sort, type_id, length_flow, max_flow, date_format, constant_char, element_source_table, source_attribute, source_value, code_cover, max_date)
VALUES (10, 1, 'B', 0, 0, '', 'SCLL', '', '', NULL, '', NULL);
-- 第2项日期 yyyyMMddsort=28位日期
INSERT INTO sys_code_rule_entry (rule_id, sort, type_id, length_flow, max_flow, date_format, constant_char, element_source_table, source_attribute, source_value, code_cover, max_date)
VALUES (10, 2, 'C', 0, 0, 'yyyyMMdd', '', '', '', NULL, '', NULL);
-- 第3项流水号sort=33位用0补位按日期重置从001开始
INSERT INTO sys_code_rule_entry (rule_id, sort, type_id, length_flow, max_flow, date_format, constant_char, element_source_table, source_attribute, source_value, code_cover, max_date)
VALUES (10, 3, 'A', 3, 1, '', '', '', '', NULL, '0', NULL);