Commit 90a1710f by liuyu

2023年05/25 清除sum任务bug。模板初始化异常检测

parent 2706f518
...@@ -169,7 +169,11 @@ public class TaskServiceCommon extends BaseTaskTypePair<TaskServiceCommon.TaskCo ...@@ -169,7 +169,11 @@ public class TaskServiceCommon extends BaseTaskTypePair<TaskServiceCommon.TaskCo
private void clearTemplateDaySum(Map<String, TemplateTitleVo> template) { private void clearTemplateDaySum(Map<String, TemplateTitleVo> template) {
for (Map.Entry<String, TemplateTitleVo> entry : template.entrySet()) { for (Map.Entry<String, TemplateTitleVo> entry : template.entrySet()) {
entry.getValue().setDaySum(0L); try {
entry.getValue().setDaySum(0L);
} catch (Exception e) {
log.error("模板初始化失败:{},", entry, e);
}
} }
} }
......
...@@ -160,7 +160,8 @@ public class TaskServiceTemplate extends BaseTaskTypePair<TaskServiceTemplate.Ta ...@@ -160,7 +160,8 @@ public class TaskServiceTemplate extends BaseTaskTypePair<TaskServiceTemplate.Ta
} }
private void templateDayClear(AutoTask autoTask) { private void templateDayClear(AutoTask autoTask) {
templateTitleService.clearDaySum(autoTask.getGroup(),
autoTask.getParamSource().getLong(GenericAttribute.START_PARAM), autoTask.getParamSource().getLong(GenericAttribute.END_PARAM));
} }
/** /**
......
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