Commit 4c0a67e3 by liuyu

2023年06/29 模板初始化 删除以弃用模型

parent e2038c0a
...@@ -167,13 +167,18 @@ public class TaskServiceCommon extends BaseTaskTypePair<TaskServiceCommon.TaskCo ...@@ -167,13 +167,18 @@ public class TaskServiceCommon extends BaseTaskTypePair<TaskServiceCommon.TaskCo
} }
private void clearTemplateDaySum(Map<String, TemplateTitleVo> template) { private void clearTemplateDaySum(Map<String, TemplateTitleVo> template) {
Set<String> removeKey = new HashSet<>();
for (Map.Entry<String, TemplateTitleVo> entry : template.entrySet()) { for (Map.Entry<String, TemplateTitleVo> entry : template.entrySet()) {
try { try {
entry.getValue().setDaySum(0L); entry.getValue().setDaySum(0L);
} catch (Exception e) { } catch (Exception e) {
log.error("模板初始化失败:{},", entry, e); log.error("模板初始化失败:{},", entry, e);
removeKey.add(entry.getKey());
} }
} }
if (!removeKey.isEmpty()) {
removeKey.forEach(template::remove);
}
} }
/** /**
......
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