From e7b54bc89169aca122a10866d1f4335fdc246c64 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Tue, 29 Oct 2024 11:10:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86):?= =?UTF-8?q?=20=20=E5=BA=94=E7=94=A8=E9=85=8D=E7=BD=AE=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E5=B9=B3=E5=8F=B0=E4=BF=AE=E6=94=B9=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E9=80=BB=E8=BE=91=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/bug/service/BugScheduleServiceImpl.java | 1 - .../functional/service/DemandScheduleServiceImpl.java | 1 - .../metersphere/project/service/ProjectApplicationService.java | 3 ++- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugScheduleServiceImpl.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugScheduleServiceImpl.java index 3d1c1a5fdf..e93b02f6c8 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugScheduleServiceImpl.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugScheduleServiceImpl.java @@ -41,7 +41,6 @@ public class BugScheduleServiceImpl implements BaseBugScheduleService { Schedule schedule = scheduleService.getScheduleByResource(projectId, BugSyncJob.class.getName()); Optional optional = Optional.ofNullable(schedule); optional.ifPresentOrElse(s -> { - s.setEnable(enable); s.setValue(typeValue); scheduleService.editSchedule(s); scheduleService.addOrUpdateCronJob(s, BugSyncJob.getJobKey(projectId), BugSyncJob.getTriggerKey(projectId), BugSyncJob.class); diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandScheduleServiceImpl.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandScheduleServiceImpl.java index 8c69a5bc17..47fbdb6100 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandScheduleServiceImpl.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandScheduleServiceImpl.java @@ -35,7 +35,6 @@ public class DemandScheduleServiceImpl implements BaseDemandScheduleService { Schedule schedule = scheduleService.getScheduleByResource(projectId, DemandSyncJob.class.getName()); Optional optional = Optional.ofNullable(schedule); optional.ifPresentOrElse(s -> { - s.setEnable(enable); s.setValue(typeValue); scheduleService.editSchedule(s); scheduleService.addOrUpdateCronJob(s, DemandSyncJob.getJobKey(projectId), DemandSyncJob.getTriggerKey(projectId), DemandSyncJob.class); diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectApplicationService.java b/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectApplicationService.java index 9c442d3664..e51ccef9bd 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectApplicationService.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectApplicationService.java @@ -77,7 +77,8 @@ public class ProjectApplicationService { * @return */ public void update(ProjectApplication application, String currentUser) { - this.doBeforeUpdate(application, currentUser); + //更新应用配置状态 改变项目是否允许对接三方平台,不影响定时任务状态 只能任务中心开启/关闭 暂时注释下面一行 + //this.doBeforeUpdate(application, currentUser); //配置信息入库 this.createOrUpdateConfig(application); }