Files
zkxw/docs/sql/zkxw-init-dict-data.sql
T

25 lines
1.3 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- ============================================================
-- 字典管理初始数据(sys_dict_type / sys_dict_data)
-- 执行前提:zkxw-requirements-v0.3-schema.sql 已建表
-- ============================================================
-- 字典类型
INSERT INTO sys_dict_type (id, dict_name, dict_type, tenant_no, order_num, create_dept_id, del_flag) VALUES
(UUID(), '组织类别编码', 'zzlbbm', 'zkxw', 1, '', 0),
(UUID(), '站点类型', 'zdlx', 'zkxw', 2, '', 0),
(UUID(), '站点业务范围', 'zdywfw', 'zkxw', 3, '', 0),
(UUID(), '部门状态', 'bmzt', 'zkxw', 4, '', 0);
-- 字典数据
INSERT INTO sys_dict_data (id, dict_label, dict_value, dict_type, tenant_no, order_num, create_dept_id, del_flag) VALUES
(UUID(), '公司', 'gs', 'zzlbbm', 'zkxw', 1, '', 0),
(UUID(), '分公司', 'fgs', 'zzlbbm', 'zkxw', 2, '', 0),
(UUID(), '部门', 'bm', 'zzlbbm', 'zkxw', 3, '', 0),
(UUID(), '中心基地', 'zxjd', 'zdlx', 'zkxw', 1, '', 0),
(UUID(), '样本采集', 'ybcj', 'zdywfw', 'zkxw', 1, '', 0),
(UUID(), '样本制备', 'ybzb', 'zdywfw', 'zkxw', 2, '', 0),
(UUID(), '质量检测', 'zljc', 'zdywfw', 'zkxw', 3, '', 0),
(UUID(), '细胞存储', 'xbcc', 'zdywfw', 'zkxw', 4, '', 0),
(UUID(), '停用', '0', 'bmzt', 'zkxw', 1, '', 0),
(UUID(), '正常', '1', 'bmzt', 'zkxw', 2, '', 0);