增加构建通知
This commit is contained in:
parent
7a3bfac44e
commit
7c6275c03a
@ -30,4 +30,7 @@ public class ApplicationQuery extends BaseQuery {
|
||||
|
||||
@QueryField(field = "languageType")
|
||||
private String languageType;
|
||||
|
||||
@QueryField(field = "applicationCategoryId")
|
||||
private Long applicationCategoryId;
|
||||
}
|
||||
@ -398,8 +398,19 @@ public class DeployServiceImpl implements IDeployService {
|
||||
? teamApps.stream().collect(groupingBy(TeamApplication::getEnvironmentId))
|
||||
: Collections.emptyMap();
|
||||
|
||||
// 遍历所有团队配置的环境,有应用就显示应用,没应用就显示空列表
|
||||
for (Environment env : envMap.values()) {
|
||||
// 获取当前团队配置的环境ID列表
|
||||
Set<Long> currentTeamEnvIds = teamEnvConfigMap.values().stream()
|
||||
.filter(config -> config.getTeamId().equals(teamId))
|
||||
.map(TeamEnvironmentConfig::getEnvironmentId)
|
||||
.collect(Collectors.toSet());
|
||||
|
||||
// 只遍历当前团队配置的环境
|
||||
for (Long envId : currentTeamEnvIds) {
|
||||
Environment env = envMap.get(envId);
|
||||
if (env == null) {
|
||||
continue; // 环境不存在,跳过
|
||||
}
|
||||
|
||||
// 获取该环境的应用列表(没有则为空列表)
|
||||
List<TeamApplication> envApps = appsByEnv.getOrDefault(env.getId(), Collections.emptyList());
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user