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); }