@RequestMapping(value = "del", method = RequestMethod.POST)
    @ResponseBody
    public Map del(@RequestParam int[] id) {
        Map<String, Object> map = new HashMap<>();

        List<String> l1 = new ArrayList<>();
        List<String> l2 = new ArrayList<>();
        List<String> l3 = new ArrayList<>();

        for (int i = 0; i < id.length; i++) {
            Menu menu = menuService.getById(id[i]);
            if (menu != null) {
                if (menu.getMenuChildren().isEmpty()) {
                    l1.add(menu.getMenuName());
                    menuService.delete(menu);
                } else {
                    l3.add(menu.getMenuName());
                }

            } else {
                l2.add(id[i] + "");
            }
        }

        String s1 = Tools.toArrayString(l1);
        String s2 = Tools.toArrayString(l2);
        String s3 = Tools.toArrayString(l3);

        map.put("success", true);
        map.put("msg", "权限：" + s1 + "，删除成功！"
                + (s2.isEmpty() ? "" : ("\n权限：" + s2 + "，信息不存在，请刷新后重试。"))
                + (s3.isEmpty() ? "" : ("\n权限：" + s3 + "，存在子项，请清空子项后重试。")));
        return map;
    }