增加流水线执行详情查询,排序
This commit is contained in:
parent
ef9c77e842
commit
9cdc4622ad
|
|
@ -123,8 +123,8 @@ public class PmsCiPipelinesServiceImpl implements IPmsCiPipelinesService {
|
|||
pmsCiPipelines.setPipelineType(pipelineType);
|
||||
startPage();
|
||||
List<PmsCiPipelines> pipelinesList = pmsCiPipelinesMapper.selectPmsCiPipelinesCardList(pmsCiPipelines);
|
||||
String workflows = Optional.ofNullable(pipelinesList).orElse(Collections.emptyList()).stream().map(PmsCiPipelines::getFileName).collect(Collectors.joining(","));
|
||||
List<PmsCiPipelinesCardRunVo> result = gitLinkRequestHelper.doGetToObjectList(PmsGitLinkRequestUrl.GET_ACTION_RUN_DATA(pmsCiPipelines.getOwner(), workflows), PmsCiPipelinesCardRunVo.class);
|
||||
String workflows = pipelinesList.size() == 0 ? "" : Optional.ofNullable(pipelinesList).orElse(Collections.emptyList()).stream().map(PmsCiPipelines::getFileName).collect(Collectors.joining(","));
|
||||
List<PmsCiPipelinesCardRunVo> result = pipelinesList.size() == 0 ? Collections.emptyList() : gitLinkRequestHelper.doGetToObjectList(PmsGitLinkRequestUrl.GET_ACTION_RUN_DATA(pmsCiPipelines.getOwner(), workflows), PmsCiPipelinesCardRunVo.class);
|
||||
return toPage(pipelinesList, x -> this.buildPmsCiPipelinesCardDetailVo(x, result));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue