Files
ccdi/sql/migration/2026-04-23-rename-staff-enterprise-relation-menu.sql

33 lines
1.5 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.
-- 员工实体关系菜单改名为员工亲属实体关联
-- 执行方式bin/mysql_utf8_exec.sh sql/migration/2026-04-23-rename-staff-enterprise-relation-menu.sql
UPDATE sys_menu
SET menu_name = '员工亲属实体关联',
remark = '员工亲属实体关联菜单',
update_by = 'admin',
update_time = NOW()
WHERE perms = 'ccdi:staffEnterpriseRelation:list'
OR path = 'staffEnterpriseRelation'
OR menu_name IN ('员工实体关系', '员工实体关系维护');
UPDATE sys_menu
SET menu_name = CASE perms
WHEN 'ccdi:staffEnterpriseRelation:query' THEN '员工亲属实体关联查询'
WHEN 'ccdi:staffEnterpriseRelation:add' THEN '员工亲属实体关联新增'
WHEN 'ccdi:staffEnterpriseRelation:edit' THEN '员工亲属实体关联修改'
WHEN 'ccdi:staffEnterpriseRelation:remove' THEN '员工亲属实体关联删除'
WHEN 'ccdi:staffEnterpriseRelation:import' THEN '员工亲属实体关联导入'
WHEN 'ccdi:staffEnterpriseRelation:export' THEN '员工亲属实体关联导出'
ELSE menu_name
END,
update_by = 'admin',
update_time = NOW()
WHERE perms IN (
'ccdi:staffEnterpriseRelation:query',
'ccdi:staffEnterpriseRelation:add',
'ccdi:staffEnterpriseRelation:edit',
'ccdi:staffEnterpriseRelation:remove',
'ccdi:staffEnterpriseRelation:import',
'ccdi:staffEnterpriseRelation:export'
);