|  |  | 
 |  |  |     GroupService groupService; | 
 |  |  |     @Autowired | 
 |  |  |     GroupMenuMapper groupMenuMapper; | 
 |  |  |     @Autowired | 
 |  |  |     LogUtils logUtils; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public MenuQueryDTO queryAllMenus() { | 
 |  |  | 
 |  |  |                 content.append("及其子菜单:" + menuMapper.selectById(childrenId).getName() + ";"); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         logUtils.saveOperationForManage(content.toString(), Constants.DELETE_OPERATE_TYPE); | 
 |  |  |         LogUtils.saveOperationForManage(content.toString(), Constants.DELETE_OPERATE_TYPE); | 
 |  |  |         //封装返回对象 | 
 |  |  |         dto.setCode(ResponseCodeEnum.SUCCESS.getCode()); | 
 |  |  |         dto.setMsg(ResponseCodeEnum.SUCCESS.getMsg()); | 
 |  |  | 
 |  |  |      * @Author: 陈凯裕 | 
 |  |  |      * @Date: 2021/5/13 | 
 |  |  |      */ | 
 |  |  |     public void combinationParentChildrenMenus(List<Menu> menus) { | 
 |  |  |     private void combinationParentChildrenMenus(List<Menu> menus) { | 
 |  |  |         //组合menu父子结构 | 
 |  |  |         Map<Integer, Menu> menuMap = new HashMap<>(); | 
 |  |  |         for (Menu menu : menus) { | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         String content = CompareFieldUtils.resultsConvertContent(compareResult, "修改了前台菜单"); | 
 |  |  |         logUtils.saveOperationForManage(content, Constants.UPDATE_OPERATE_TYPE); | 
 |  |  |         LogUtils.saveOperationForManage(content, Constants.UPDATE_OPERATE_TYPE); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |     private void insertLog(Menu menu) { | 
 |  |  |         StringBuilder content = new StringBuilder(); | 
 |  |  |         //判断插入的是子菜单还是父菜单 | 
 |  |  |         if (menu.getParentId() == null) { | 
 |  |  |         if (menu.getParentId().equals(0)) { | 
 |  |  |             content.append("添加了前台父菜单;"); | 
 |  |  |         } else { | 
 |  |  |             content.append("添加了前台子菜单;"); | 
 |  |  | 
 |  |  |         if (menu.getUrl() != null) | 
 |  |  |             content.append("url:" + menu.getUrl() + ";"); | 
 |  |  |         content.append("顺序:" + menu.getOrder() + ";"); | 
 |  |  |         logUtils.saveOperationForManage(content.toString(), Constants.INSERT_OPERATE_TYPE); | 
 |  |  |         LogUtils.saveOperationForManage(content.toString(), Constants.INSERT_OPERATE_TYPE); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } | 
 |  |  |  |