B1 后端基础:flw_def.change_log + 在途统计接口 + 路由 trace 透出 rawResponse

- change_log(议题二③):FlwDef 附加列 + save 加 changeLog 入参,只在三个新建行分支写入
  (def.getId()==null 判据),草稿直改不写也不清空;>500 service 侧截断不抛错;补生产备案 SQL
- GET /admin/def/inflight(议题二④):flowGuid→审批中(10)办件数,口径=def_id ∈ 该线全部版本;
  请求的每个 guid 都建 0 键;逗号分隔去重限 100;FlowDefAdminService 注入 FlwInstanceRepository
- routeTraceRow(议题三②):kind=ROUTE 行增 rawResponse(null→"",>500 截断加 …)

验证:mvn.cmd 单模块编译通过;spring-boot:run 启动成功无循环依赖;ddl-auto 已自动建 change_log 列;
SQL 口径核对在途 37 件/8 条线,flw_route_log 24 行均有 raw_response
This commit is contained in:
chenxing
2026-10-12 15:59:47 +08:00
parent c896fbb90b
commit de332d1c66
7 changed files with 62 additions and 3 deletions
@@ -383,6 +383,9 @@ public class FlowQueryService {
row.put("attempt", r.getAttempt());
row.put("status", null);
row.put("time", str(r.getDecideTime()));
// 议题三②:调试弹窗「从路由日志导入」需要看失败摘要(>500 截断)
row.put("rawResponse", r.getRawResponse() == null ? "" :
(r.getRawResponse().length() > 500 ? r.getRawResponse().substring(0, 500) + "…" : r.getRawResponse()));
return row;
}