Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复创建角色可能导制所有角色和菜单信息删除的故障 #338

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

qdongxu
Copy link

@qdongxu qdongxu commented Feb 21, 2025

  1. 在添加角色时,代码未正确处理菜单类别为 A 的场景生成了错误的 SQL 导制 Insert 失败。但是前一步的 Delete 已经成功了。从而导制角色、菜单数据丢失。
  2. 修复:
    1. 增加业务逻辑判断,当菜单类别为 A 时,不执行 Insert 操作。
    2. 更新所有角色相关操作的 SQL 事务提效或回滚逻辑,保证事务一致性。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants