Files
ccdi/doc/数据库文档/员工调动记录/02_dict_data.sql

28 lines
1.9 KiB
MySQL
Raw Normal View History

2026-02-11 10:42:38 +08:00
-- =============================================
-- 员工调动类型字典配置
-- 字典类型: ccdi_transfer_type
-- 说明: 员工调动类型枚举
-- 作者: ruoyi
-- 日期: 2026-02-10
-- =============================================
-- 插入字典类型
INSERT INTO `sys_dict_type` (dict_id, dict_name, dict_type, status, create_by, create_time, remark)
VALUES (NULL, '调动类型', 'ccdi_transfer_type', '0', 'admin', NOW(), '员工调动类型:升职、降职、平调、轮岗、借调等');
-- 获取刚插入的dict_id(假设为111,实际使用时需要查询获取)
SET @dict_type_id = LAST_INSERT_ID();
-- 插入字典数据
INSERT INTO `sys_dict_data` (dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark) VALUES
(1, '升职', 'PROMOTION', 'ccdi_transfer_type', '', 'primary', 'N', '0', 'admin', NOW(), '员工升职'),
(2, '降职', 'DEMOPTION', 'ccdi_transfer_type', '', 'danger', 'N', '0', 'admin', NOW(), '员工降职'),
(3, '平调', 'LATERAL', 'ccdi_transfer_type', '', 'info', 'N', '0', 'admin', NOW(), '平级调动'),
(4, '轮岗', 'ROTATION', 'ccdi_transfer_type', '', 'warning', 'N', '0', 'admin', NOW(), '岗位轮换'),
(5, '借调', 'SECONDMENT', 'ccdi_transfer_type', '', 'info', 'N', '0', 'admin', NOW(), '临时借调到其他部门'),
(6, '部门调动', 'DEPARTMENT_CHANGE', 'ccdi_transfer_type', '', 'success', 'N', '0', 'admin', NOW(), '部门之间调动'),
(7, '职位调整', 'POSITION_CHANGE', 'ccdi_transfer_type', '', 'primary', 'N', '0', 'admin', NOW(), '职位调整'),
(8, '返岗', 'RETURN', 'ccdi_transfer_type', '', 'info', 'N', '0', 'admin', NOW(), '返回原岗位'),
(9, '离职', 'TERMINATION', 'ccdi_transfer_type', '', 'danger', 'N', '0', 'admin', NOW(), '员工离职'),
(10, '其他', 'OTHER', 'ccdi_transfer_type', '', 'info', 'N', '0', 'admin', NOW(), '其他类型调动');