Commit 6d224b56 by wangli

修改

1 parent 61546387
...@@ -382,17 +382,12 @@ public class EngineerServiceImpl implements EngineerService { ...@@ -382,17 +382,12 @@ public class EngineerServiceImpl implements EngineerService {
// 标签 // 标签
List<String> tags = new ArrayList<>(); List<String> tags = new ArrayList<>();
if (e.getTags() != null) { if (e.getTags() != null) {
Iterator<Map.Entry<String, JsonNode>> it = e.getTags().fields(); for(Map.Entry<String, Object> entry: e.getTags().entrySet()){
while(it.hasNext()){ tags.add(String.format("%s+%d", entry.getKey(), entry.getValue()));
Map.Entry<String, JsonNode> field = it.next();
String name = field.getKey();
JsonNode value = field.getValue();
tags.add(String.format("%s+%d",field.getKey(), field.getValue().intValue()));
} }
} else { } else {
item.setTags(tags); item.setTags(tags);
} }
items.add(item); items.add(item);
} }
return items; return items;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!