refactor(项目管理): 应用配置对接三方平台修改状态逻辑微调

This commit is contained in:
WangXu10 2024-10-29 11:10:45 +08:00 committed by Craftsman
parent b96a33622b
commit e7b54bc891
3 changed files with 2 additions and 3 deletions

View File

@ -41,7 +41,6 @@ public class BugScheduleServiceImpl implements BaseBugScheduleService {
Schedule schedule = scheduleService.getScheduleByResource(projectId, BugSyncJob.class.getName());
Optional<Schedule> 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);

View File

@ -35,7 +35,6 @@ public class DemandScheduleServiceImpl implements BaseDemandScheduleService {
Schedule schedule = scheduleService.getScheduleByResource(projectId, DemandSyncJob.class.getName());
Optional<Schedule> 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);

View File

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