// 删除
  @RequestMapping(value = "/delete", method = RequestMethod.POST)
  @ResponseBody
  public Object del(String ids) {
    Map map = new HashMap();
    int result = 0;
    Collection collection = new ArrayList();
    for (String id : ids.split("&")) {
      List<ControlBaseInfo> controlBaseInfos =
          controlBaseInfoService.selectByBaseMer(Long.valueOf(id));

      if (controlBaseInfos.size() == 0) {
        result = baseMerService.deleteByPrimaryKey(Long.valueOf(id));
      } else {
        collection.addAll(controlBaseInfos);
      }
    }

    map.put("state", result);
    if (!collection.isEmpty()) {
      map.put(
          "controlBaseInfos",
          BeanUtil.getCollection2JSON(collection, "controlBaseInfos", "controlmername", true));
    }

    return map;
  }
  public String getControlMerInfo() {
    ControlMerInfoService controlMerInfoService =
        SpringContextHolder.getBean("controlMerInfoService");

    List<Object> collection = new ArrayList<Object>();
    Map map = new HashMap();
    collection.addAll(controlMerInfoService.getListByMap(map));

    Set<String> unIncludes = new HashSet<String>();

    return BeanUtil.getCollection2XML(collection, "root", "ControlMerInfo", unIncludes);
  }