修复 RoleServiceImpl 单元测试失败的问题

This commit is contained in:
YunaiV 2022-03-21 00:30:39 +08:00
parent 3526353cdf
commit 69d736c3c6

View File

@ -126,6 +126,7 @@ public class RoleServiceImpl implements RoleService {
} }
@Override @Override
@Transactional
public Long createRole(RoleCreateReqVO reqVO, Integer type) { public Long createRole(RoleCreateReqVO reqVO, Integer type) {
// 校验角色 // 校验角色
checkDuplicateRole(reqVO.getName(), reqVO.getCode(), null); checkDuplicateRole(reqVO.getName(), reqVO.getCode(), null);