|
|
|
@ -133,15 +133,10 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectMapper, ProjectEn
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Map<String, ProjectVO> getProjectAndContentByEmCodes(String emCodes) { |
|
|
|
|
public List<ProjectVO> getProjectAndContentByEmCodes(String emCodes) { |
|
|
|
|
Query query = new Query(); |
|
|
|
|
query.setCurrent(1); |
|
|
|
|
query.setSize(-1); |
|
|
|
|
Map<String,ProjectVO> result = new HashMap<>(); |
|
|
|
|
Stream.of(emCodes.split(",")).forEach(emCode -> { |
|
|
|
|
ProjectVO project = this.getProjectAndContentByEmCode(emCode,new ContentDTO(),query); |
|
|
|
|
result.put(emCode,project); |
|
|
|
|
}); |
|
|
|
|
return result; |
|
|
|
|
return Stream.of(emCodes.split(",")).map(emCode -> this.getProjectAndContentByEmCode(emCode, new ContentDTO(), query)).collect(Collectors.toList()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|