From 95a20375b37362ef3ab082d5467bdd570a0d255d Mon Sep 17 00:00:00 2001 From: lvzk <897706680@qq.com> Date: Tue, 1 Jul 2025 17:57:19 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=E5=8F=91=E5=B8=83=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E6=99=AE=E9=80=9A=E4=BD=9C=E4=B8=9A=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=B9=B6=E5=8F=91=E6=95=B0=20#[1447956513783?= =?UTF-8?q?808]=E8=87=AA=E5=8A=A8=E5=8C=96=E6=94=AF=E6=8C=81=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=B9=B6=E5=8F=91=E6=95=B0=20http://192.168.0.96:8090?= =?UTF-8?q?/demo/rdm.html#/story-detail/939050947543040/939050947543042/14?= =?UTF-8?q?47956513783808?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/deploy/api/schedule/GetDeployScheduleApi.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/neatlogic/module/deploy/api/schedule/GetDeployScheduleApi.java b/src/main/java/neatlogic/module/deploy/api/schedule/GetDeployScheduleApi.java index c37e1713..632ef414 100644 --- a/src/main/java/neatlogic/module/deploy/api/schedule/GetDeployScheduleApi.java +++ b/src/main/java/neatlogic/module/deploy/api/schedule/GetDeployScheduleApi.java @@ -19,6 +19,7 @@ import com.alibaba.fastjson.JSONObject; import neatlogic.framework.asynchronization.threadlocal.UserContext; import neatlogic.framework.auth.core.AuthAction; import neatlogic.framework.auth.core.AuthActionChecker; +import neatlogic.framework.autoexec.constvalue.AutoexecParallelPolicy; import neatlogic.framework.common.constvalue.ApiParamType; import neatlogic.framework.deploy.auth.DEPLOY_BASE; import neatlogic.framework.deploy.auth.PIPELINE_MODIFY; @@ -35,6 +36,7 @@ import neatlogic.framework.restful.core.privateapi.PrivateApiComponentBase; import neatlogic.module.deploy.dao.mapper.DeployPipelineMapper; import neatlogic.module.deploy.dao.mapper.DeployScheduleMapper; import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; import javax.annotation.Resource; @@ -94,7 +96,12 @@ public class GetDeployScheduleApi extends PrivateApiComponentBase { scheduleVo.setEditable(1); scheduleVo.setDeletable(1); } - } else if(type.equals(ScheduleType.PIPELINE.getValue())) { + //兼容老数据 + if (scheduleVo.getConfig() != null && scheduleVo.getConfig().getRoundCount() != null + && StringUtils.isBlank(scheduleVo.getConfig().getParallelPolicy())) { + scheduleVo.getConfig().setParallelPolicy(AutoexecParallelPolicy.ROUND_COUNT.getValue()); + } + } else if (type.equals(ScheduleType.PIPELINE.getValue())) { String pipelineType = scheduleVo.getPipelineType(); if (pipelineType.equals(PipelineType.APPSYSTEM.getValue())) { Set actionSet = DeployAppAuthChecker.builder(scheduleVo.getAppSystemId()) -- Gitee