diff --git a/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/permission/RoleServiceImpl.java b/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/permission/RoleServiceImpl.java index 713b7e4db..6bd7af2c6 100644 --- a/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/permission/RoleServiceImpl.java +++ b/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/permission/RoleServiceImpl.java @@ -126,6 +126,7 @@ public class RoleServiceImpl implements RoleService { } @Override + @Transactional public Long createRole(RoleCreateReqVO reqVO, Integer type) { // 校验角色 checkDuplicateRole(reqVO.getName(), reqVO.getCode(), null);