对应版本下拉

This commit is contained in:
zhn
2023-08-29 11:28:23 +08:00
parent 6047281132
commit 8588c1aa0c
@@ -366,7 +366,9 @@ public class ProjectRxswinEOServiceImpl extends ServiceImpl<ProjectRxswinEOMappe
LambdaQueryWrapper<ProjectRxswinEO> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(ProjectRxswinEO::getProjectId,projectId);
List<ProjectRxswinEO> rxswinEOList = this.list(wrapper);
List<String> versionList = rxswinEOList.stream().map(ProjectRxswinEO::getVersion).distinct().collect(Collectors.toList());
List<String> versionList = rxswinEOList.stream()
.filter(e->StringUtils.isNotBlank(e.getVersion()))
.map(ProjectRxswinEO::getVersion).distinct().collect(Collectors.toList());
Collections.sort(versionList,(a,b)->{
return Integer.parseInt(a) - Integer.parseInt(b);
});