P4-1 转换器线:扩 EDITFORM/主子表/树/选择窗/<report> 段 + 全量 1516 模板批量转换双闸分级

转换器扩展(platform-converter,PoC crud 三段种子上):
- 按 XML 根元素分派 crud/form/tree/report/group;ConversionResult+Grade 三级分级
- EDITFORM:form pageid 解析 view_page 取字段;主子表 EditGrid/FormEditGrid→input-table(子列取自 editgridtemplate)
- 树:type=3 声明式→input-tree、type=4 引用式→flex(tree+crud)
- 选择窗 SelectDialog/MultiSelectDialog→select+source(非 amis picker:picker 不在 6.13 schema 表单项 oneOf,闸一会拒)
- <report> A 类:crud+合计行(issummer→summaryFields)+金额列(ismoney→number);selectservice→/api/flow;JOR/图表降级标注
- UiTypeMapper 统一 uitype 映射;每决策登记映射台账(全量约 1.6 万条)
- 孤儿模板(entityid 非法/空 xml)旁路标记不崩(手册 §7.4)

批量+双闸(BatchConvertCli,可独立 CLI 跑批,只读连库+5435 ceshi 库硬守门):
- 闸一 SchemaGate(宽松语义预处理抽出,与 AmisSchemaController 共享):通过 98.2%(1489/1516)
- 闸二 playwright+本地 amis SDK 渲染冒烟,每类型抽≥5:25/25 全过
- 产物 转换产物/(schema/*.json + 分级清单.csv + 闸二结果.json)
- 失败 27 个全为空 xml 孤儿模板(库内数据问题,非转换器缺陷)

新坑进手册 §8.3(picker 不在表单项 oneOf,用 select+source) §8.4(闸二大 schema 经端点拉避 HTTP 431)
单测 24 个;全 reactor mvn test+ArchUnit 绿
报告 platform-converter/P4批量转换报告.md

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 16:27:49 +08:00
parent aefb0e2eb9
commit f563b472e6
20 changed files with 37747 additions and 167 deletions

View File

@@ -0,0 +1,3 @@
# 逐模板 schema JSON 是 CLI 可一键复跑的产物(6.8M/1489 文件),不入库,避免仓库膨胀。
# 保留分级清单.csv + 闸二结果.json 作为可审阅交付物。
schema/

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,183 @@
{
"perType": {
"crud": {
"sampled": 5,
"pass": 5,
"fail": 0
},
"tree": {
"sampled": 5,
"pass": 5,
"fail": 0
},
"group": {
"sampled": 5,
"pass": 5,
"fail": 0
},
"form": {
"sampled": 5,
"pass": 5,
"fail": 0
},
"report": {
"sampled": 5,
"pass": 5,
"fail": 0
}
},
"samples": [
{
"root": "crud",
"id": "00551ef5-1c76-4015-bec9-2e1c8b631deb",
"pass": true,
"reason": ""
},
{
"root": "crud",
"id": "009c4f52-636a-4688-8148-75cabe83fd83",
"pass": true,
"reason": ""
},
{
"root": "crud",
"id": "00e7a83b-dd1f-4d7a-a574-bc362bc785d2",
"pass": true,
"reason": ""
},
{
"root": "crud",
"id": "00f6638e-72c7-4834-96ff-904935375951",
"pass": true,
"reason": ""
},
{
"root": "crud",
"id": "01711eee-5b37-4801-895c-90195b06cc51",
"pass": true,
"reason": ""
},
{
"root": "tree",
"id": "0211a0e2-2073-4b24-b59f-e6757e5dcff0",
"pass": true,
"reason": ""
},
{
"root": "tree",
"id": "0246d4bd-232b-465d-9265-8c1fc1ecbdf2",
"pass": true,
"reason": ""
},
{
"root": "tree",
"id": "082f27b4-7ae9-4b21-acc9-2b2a6f7d9797",
"pass": true,
"reason": ""
},
{
"root": "tree",
"id": "09f5fb86-5ea4-46e4-91c4-26115216129c",
"pass": true,
"reason": ""
},
{
"root": "tree",
"id": "13accf09-82c7-44f7-9ad0-c0bbcc55cb09",
"pass": true,
"reason": ""
},
{
"root": "group",
"id": "05226af5-5c77-470f-b039-d894fc55714d",
"pass": true,
"reason": ""
},
{
"root": "group",
"id": "08158341-1b41-48be-9226-90a206960e8f",
"pass": true,
"reason": ""
},
{
"root": "group",
"id": "1d9e666d-8923-4d9a-8644-05ba3fa533aa",
"pass": true,
"reason": ""
},
{
"root": "group",
"id": "27e3d27b-8d0a-4f7d-b159-8713f8184aa7",
"pass": true,
"reason": ""
},
{
"root": "group",
"id": "286c8dc9-bebe-4d58-a1ae-b7f0f54654be",
"pass": true,
"reason": ""
},
{
"root": "form",
"id": "00511ac1-ee64-4ecd-a550-22842ee5be72",
"pass": true,
"reason": ""
},
{
"root": "form",
"id": "00a64619-0014-412f-8ca9-95edcf988c2f",
"pass": true,
"reason": ""
},
{
"root": "form",
"id": "0267be11-591a-4533-b7cc-079cef81086e",
"pass": true,
"reason": ""
},
{
"root": "form",
"id": "04da8989-3627-4360-9834-bb55178546dd",
"pass": true,
"reason": ""
},
{
"root": "form",
"id": "093627bf-d7e2-460b-b00c-5a49fb9ac671",
"pass": true,
"reason": ""
},
{
"root": "report",
"id": "00654052-f899-45d6-bbd4-04457c13025a",
"pass": true,
"reason": ""
},
{
"root": "report",
"id": "03ec5566-7d99-4eba-85ce-31e25f5e48ab",
"pass": true,
"reason": ""
},
{
"root": "report",
"id": "063fdf2a-3032-4220-9974-32f0a5932aa6",
"pass": true,
"reason": ""
},
{
"root": "report",
"id": "069325dd-9ede-4dbe-9149-c02a5992b951",
"pass": true,
"reason": ""
},
{
"root": "report",
"id": "072192b6-8737-4af2-a8e6-402343152e3a",
"pass": true,
"reason": ""
}
],
"generatedAt": "2026-06-11T08:22:09.035Z",
"perTypeTarget": 5
}