| | |
| | | if (CollectionUtils.isEmpty(existAttributeVOList)) { |
| | | throw new VciBaseException("使用的属性都在系统中不存在,请先查证"); |
| | | } else { |
| | | Set<String> existAttributeOidSet = (existAttributeVOList.stream().collect(Collectors.toMap(s -> s.getId().toLowerCase().trim(), t -> t))).keySet(); |
| | | Set<String> existAttributeOidSet = (existAttributeVOList.stream().collect(Collectors.toMap(s -> s.getId().trim(), t -> t))).keySet(); |
| | | keyCollections.stream().forEach(s -> { |
| | | if (!existAttributeOidSet.contains(s)) { |
| | | throw new VciBaseException("使用的属性{0}在系统中不存在,请先查证", new Object[]{s}); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据编号集合获取属性数据对象 |
| | | * 根据编号集合获取属性数据对象,其中默认的属性应当剔除 |
| | | * @param attributeIdCollection 属性的编号集合 |
| | | * @return 属性数据对象列表,如果有不存在的不会返回,全部不存在的则返回空列表 |
| | | * @throws VciBaseException mybatis查询出错的时候会抛出异常 |