| | |
| | | public Map clo2Map(LinkObject clo) throws VciBaseException { |
| | | Map<String,String> map = new HashMap<String, String>(); |
| | | WebUtil.copyValueToMapFromClos(clo, map); |
| | | return map; |
| | | //TODO:20241128 过滤掉空key和空value |
| | | Map<String, Object> filteredClo2Map = map.entrySet() |
| | | .stream() |
| | | .filter(entry -> entry.getKey() != null && !entry.getKey().isEmpty() && entry.getValue() != null && !entry.getValue().toString().isEmpty()) |
| | | .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); |
| | | return filteredClo2Map; |
| | | } |
| | | |
| | | @Override |