@RequiresPermissions({"categoryWord-delete"})
  @RequestMapping(
      method = RequestMethod.POST,
      value = "/deleteCategoryWord",
      headers = "Accept=application/json")
  public @ResponseBody boolean deleteCategoryWord(@RequestBody List list) throws Exception {
    OperationLog operationLog = systemLogService.record("类别词", "批量删除", "类别词列表:");
    String logParams = "";

    for (int i = 0; i < list.size(); i++) {
      LinkedHashMap<String, String> map = (LinkedHashMap<String, String>) list.get(i);
      Set<String> keySet = map.keySet();
      String id = map.get("id");
      // 与元数据关联的不能删除
      String esglisgAb = map.get("esglisgAb");
      List<Metadata> metadatas = metadataService.findBy("categoryWordId", esglisgAb);
      if (metadatas.size() > 0) {
        return false;
      }
      categoryWordService.deleteById(id);
      logParams += esglisgAb + ",";
    }

    operationLog.setParams("类别词列表(英文缩写):" + logParams);
    systemLogService.updateResult(operationLog);
    return true;
  }
 @RequiresPermissions({"categoryWord-delete"})
 @RequestMapping(
     method = RequestMethod.POST,
     value = "/deleteCategoryWord2",
     headers = "Accept=application/json")
 public @ResponseBody boolean deleteCategoryWord2(@RequestBody CategoryWord categoryWord)
     throws Exception {
   OperationLog operationLog =
       systemLogService.record("类别词", "删除", "名称:" + categoryWord.getChineseWord());
   String id = categoryWord.getId();
   // 与元数据关联的不能删除
   String esglisgAb = categoryWord.getEsglisgAb();
   List<Metadata> metadatas = metadataService.findBy("categoryWordId", esglisgAb);
   if (metadatas.size() > 0) {
     return false;
   }
   categoryWordService.delete(categoryWord);
   systemLogService.updateResult(operationLog);
   return true;
 }