Skip to content

你们好像有一个地方忘了开启事务管理 #303

@HulkBuster315

Description

@HulkBuster315

在你们一个叫RuoYi-Vue-fast-master的项目中 github链接-> https://github.com/yangzongzhuan/RuoYi-Vue-fast 我看到com.ruoyi.project.system.service.impl包下,SysRoleServiceImpl类中, /**
* 新增角色菜单信息
*
* @param role 角色对象
*/
public int insertRoleMenu(SysRole role) 这个方法,它的业务逻辑应该是:新增角色的时候,同时在角色菜单表下新增角色id吧?但是数据库同时进行多条insert,你们没有加@Transatonal进行事务管理,是设计如此还是疏忽了?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions