完善菜单管理

This commit is contained in:
ah--desktop
2025-10-06 13:11:15 +08:00
parent 97ffe06578
commit d45ac21647
7 changed files with 1379 additions and 343 deletions
@@ -103,17 +103,17 @@ public class MenuServiceImpl extends ServiceImpl<MenuMapper, MenuPO> implements
}
// 更新菜单
MenuPO menu = new MenuPO();
BeanUtils.copyProperties(updateMenuDTO, menu);
BeanUtils.copyProperties(updateMenuDTO, existingMenu);
existingMenu.setId(id); // 确保ID正确设置
// 设置更新人ID
menu.setUpdateBy(currentUserContext.getCurrentUserId());
existingMenu.setUpdateBy(currentUserContext.getCurrentUserId());
// 保存菜单
this.updateById(menu);
this.updateById(existingMenu);
// 转换为VO并返回
return convertToVO(menu);
return convertToVO(existingMenu);
}
@Override