mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 02:39:19 +08:00
完善菜单管理
This commit is contained in:
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user