From 82fbbf24939e150ee3cef90dc0dd843c9897a7e6 Mon Sep 17 00:00:00 2001 From: kimi <kimi42345@gmail.com> Date: 星期六, 23 五月 2020 12:27:13 +0800 Subject: [PATCH] 添加 log前 去除bak文件前的备份 --- src/main/java/com/highdatas/mdm/controller/MenuMappingController.java | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/highdatas/mdm/controller/MenuMappingController.java b/src/main/java/com/highdatas/mdm/controller/MenuMappingController.java index ee155c9..2529a56 100644 --- a/src/main/java/com/highdatas/mdm/controller/MenuMappingController.java +++ b/src/main/java/com/highdatas/mdm/controller/MenuMappingController.java @@ -74,17 +74,14 @@ String menuId = menuMapping.getMenuId(); SysMenu menu = menuService.selectById(menuId); String preParentId = menu.getParentId(); - + menu.setName(menuMapping.getName()).updateById(); String themeId = menuMapping.getThemeId(); - if (!preParentId.equalsIgnoreCase(themeId)) { - menu.setParentId(themeId); - menu.updateById(); - } +// if (!preParentId.equalsIgnoreCase(themeId)) { +//// menu.setParentId(themeId); +//// menu.updateById(); +//// } boolean updated = menuMapping.updateById(); if (updated) { - - - TUser user = DbUtils.getUser(request); if (menu != null) { LinkedHashSet<String> parentIdSet = new LinkedHashSet<>(); -- Gitblit v1.8.0