Commit 6d224b56 by wangli

修改

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