pull/1121/head
梁宇奇 2025-08-26 18:21:57 +08:00
parent 8bb26814c1
commit 4621dfa6c2
1 changed files with 2 additions and 0 deletions

View File

@ -124,6 +124,8 @@ public class StoreRoleController extends XktBaseController {
RoleInfoEdit dto = BeanUtil.toBean(vo, RoleInfoEdit.class);
//档口的roleKey不变
dto.setRoleKey(info.getRoleKey());
//档口默认启用
dto.setStatus(Constants.SYS_NORMAL_STATUS);
Set<Long> usableMenuIds = sysMenuService.storeUsableMenuIds();
CollUtil.emptyIfNull(dto.getMenuIds())
.forEach(menuId -> Assert.isTrue(usableMenuIds.contains(menuId), "菜单不可用"));