@Override public String deleteByIDS(Long[] ids, Long operateUser) { if (ids == null || ids.length == 0) { return "parameter error"; } for (Long id : ids) { List<?> ltest0 = catalogInfoMapper.findCatalogInfoByPFId(id, "002"); if (ltest0 != null && ltest0.size() > 0) { return "id=" + id + " 职能已被挂在行业类型之下,请先解除关系"; } int c1 = catalogTypeMapper.countByFunctionId(id); if (c1 > 0) { return "id=" + id + " 职能已被行业模板使用,不能删除"; } int c2 = userExampleMapper.countByFunctionId(id); if (c2 > 0) { return "id=" + id + " 职能已被用户使用,不能删除"; } } functionInfoMapper.deleteByIDS(ids, operateUser); return null; }