| | |
| | | e.printStackTrace(); |
| | | return null; |
| | | } |
| | | String menuId = menuMapping.getMenuId(); |
| | | if (StringUtils.isEmpty(menuId)) { |
| | | return null; |
| | | } |
| | | int cnt = selectCount(new EntityWrapper<MenuMapping>().eq("menu_id", menuId)); |
| | | if (cnt != 0) { |
| | | return null; |
| | | } |
| | | //menuMapping.setMaintainFieldId(maintainId); |
| | | return create(menuMapping); |
| | | } |
| | |
| | | @Override |
| | | public Result getMapping(HttpSession session, String id) { |
| | | SysMenu sysMenu = menuService.selectById(id); |
| | | if (sysMenu == null) { |
| | | return Result.error(CodeMsg.SELECT_ERROR); |
| | | } |
| | | String menuType = sysMenu.getMenuType(); |
| | | if (StringUtils.isEmpty(menuType)) { |
| | | return Result.error(CodeMsg.SELECT_ERROR); |