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