Commit bb065db8 by 张祺

修改任务生成方法

parent 59dd535f
...@@ -596,12 +596,12 @@ public class TaskServiceImpl implements TaskService { ...@@ -596,12 +596,12 @@ public class TaskServiceImpl implements TaskService {
allTasks.add(task); allTasks.add(task);
} }
} }
if (!allTasks.isEmpty()) { if (result != null && !allTasks.isEmpty()) {
this.batchCreateTask(allTasks, valueTime, ruleId); this.batchCreateTask(allTasks, valueTime, ruleId);
rule.setLastActiveTime(now); rule.setLastActiveTime(now);
taskRuleService.updateRuleWithInd(rule); taskRuleService.updateRuleWithInd(rule);
result = Result.genOkResult(); result = Result.genOkResult();
} else { } else if (result != null) {
result = Result.genFailedResult("规则配置没有生成可用的任务信息"); result = Result.genFailedResult("规则配置没有生成可用的任务信息");
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment