refactor(项目管理): 应用配置对接三方平台修改状态逻辑微调
This commit is contained in:
parent
b96a33622b
commit
e7b54bc891
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue