提交 378eeff8 authored 作者: inroi's avatar inroi

微调

上级 ba38f7f4
......@@ -107,7 +107,7 @@ public class QuartzJobServiceImpl extends ServiceImpl<QuartzJobMapper, QuartzJob
return temp01;
}
quartzJobMapper.updateStatusByJobClassName(records.getJobClassName(), 1);
quartzJobMapper.updateStatusByJobClassName(records.getJobClassName(), 0);
return RestResponse.success();
}
......@@ -128,7 +128,7 @@ public class QuartzJobServiceImpl extends ServiceImpl<QuartzJobMapper, QuartzJob
return temp02;
}
quartzJobMapper.updateStatusByJobClassName(inVo.getJobClassName(), 0);
quartzJobMapper.updateStatusByJobClassName(inVo.getJobClassName(), 1);
return RestResponse.success();
}
......
......@@ -57,7 +57,7 @@ public class SynchronizationServiceImpl implements ISynchronizationService {
QuartzJob quartzJob = quartzJobService.getBaseMapper().selectById("1");
if (StringUtil.isNotNull(quartzJob)) {
if (quartzJob.getStatus() == 1) {
if (quartzJob.getStatus() == 0) {
quartzJobService.quartzJobResume(new QuartzJobResumeInVo(quartzJob.getJobClassName()));
return RestResponse.success();
}
......@@ -73,7 +73,7 @@ public class SynchronizationServiceImpl implements ISynchronizationService {
QuartzJob quartzJob = quartzJobService.getBaseMapper().selectById("1");
if (StringUtil.isNotNull(quartzJob)) {
if (quartzJob.getStatus() == 0) {
if (quartzJob.getStatus() == 1) {
quartzJobService.quartzJobPause(new QuartzJobPauseInVo(quartzJob.getJobClassName()));
return RestResponse.success();
}
......@@ -135,7 +135,7 @@ public class SynchronizationServiceImpl implements ISynchronizationService {
if (StringUtil.isNotNull(quartzJob)) {
if (quartzJob.getStatus() == 1) {
return RestResponse.fail("请先关闭同步再保存!");
return RestResponse.fail("请先关闭同步再开启!");
}
} else {
return RestResponse.fail("自动同步定时任务不存在!");
......@@ -151,7 +151,7 @@ public class SynchronizationServiceImpl implements ISynchronizationService {
if (StringUtil.isNotNull(quartzJob)) {
if (quartzJob.getStatus() == 1) {
return RestResponse.fail("请先关闭同步再保存!");
return RestResponse.fail("请先关闭同步再开启!");
}
} else {
return RestResponse.fail("自动同步定时任务不存在!");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论