REQ-2135: 调整命名

This commit is contained in:
yanglin 2024-04-04 10:41:30 +08:00
parent 5d01a704c5
commit 2ed58170e5

View File

@ -461,18 +461,18 @@ public class TodoManager {
.orderByDesc(Todo::getId)
.list();
Todo currentStateSample = noStateTodos.isEmpty() ? null : noStateTodos.get(0);
String reason = currentStateSample == null ? "没有找到对应的待办" : "起初状态不匹配";
String failReason = currentStateSample == null ? "没有找到对应的待办" : "起初状态不匹配";
ctx.addLogContent("stateAdvanced", false);
if (!noStateTodos.isEmpty()) {
HashMap<String, Object> fail = new HashMap<>();
fail.put("failReason", reason);
fail.put("failReason", failReason);
fail.put("currentStateSample", currentStateSample);
ctx.addLogContent("stateAdvanceFail", fail);
todoLogger.logTodosUpdated(ctx, noStateTodos);
}
// throw an error? dunno
log.warn("尝试推进待办状态, 但是 {}. ctx={}, query={}, currentStateSample={}",
reason, ctx, QueryFormatter.format(builder.getQuery()), currentStateSample);
failReason, ctx, QueryFormatter.format(builder.getQuery()), currentStateSample);
};
if (todos.isEmpty()) {
advanceFailLogger.run();