303b4d0240
fix(design): @Autowired DesignFeatureController 生产构造器 — 修 Spring 多构造器回退无参导致启动崩
...
live e2e 揪出:DesignFeatureController 有「生产构造+包级测试构造」两个构造器,
生产构造未标 @Autowired → Spring 回退找无参构造 → NoSuchMethodException 启动失败。
纯单元测试全 new 对象故漏检;真实 boot 才暴露。补 @Autowired + 回归测试守护此装配模式。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:25:12 +08:00
b5a6388024
feat(design): publish 生成 production 人审部署包(DECISION-2,manifest+rollback)(建物3-Task13)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:10:22 +08:00
c339efcdcb
feat(design): publish 菜单注册 MenuRegistrar(dedup+新功能目录)(建物3-Task12)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:08:41 +08:00
74478f030e
feat(design): POST /api/design/publish 确保默认流落库(幂等)(建物3-Task11)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:07:13 +08:00
9765872382
feat(design): GET /api/design/flows 列出实体默认流预览(建物3-Task10)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:05:30 +08:00
05181d75bf
test(design): 端到端·composer 透传 reference 列→编译显名 <COL>_DISPLAY__
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:55:10 +08:00
869790d04f
feat(design): 编译器引用列渲染显名·list 列 name 指向 <COL>_DISPLAY__(运行时 _SEARCH 注入,白名单安全)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:54:33 +08:00
eabebae361
feat(design): POST /api/design/recipe/compile 单步端点(建物2)·服务端生成 templateId+严格 typed 闸+唯一真相落标准层
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:53:49 +08:00
687ade7513
feat(design): RecipePageComposer 共享蓝图装配器 + PageBlueprintField 引用字段扩展(向后兼容)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:52:13 +08:00
3e24f135ad
chore(meta): 实体描述取请求 description, 默认中性'设计中心创建'(去硬编码 AI 标记)
...
DESCRIPTION 行与 resolveDescription 在 Task 3 即就地实现(§B.9-7 收口),本提交补
resolveDescription 纯函数单测。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:37:10 +08:00
6f34be15eb
fix(meta): 引用列 DDL 外键指向目标表而非自表(DECISION-1)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:36:43 +08:00
8c3f3944be
feat(meta): POST /api/meta/entity 支持 reference 列(find-or-create SYS_REFERENCE 指向目标实体)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:35:14 +08:00
61e51abeb6
feat(meta): GET /api/meta/entity/{table}/attributes 列清单+displayColumn+引用列反解
...
抽出可复用 @Component EntityAttributesService(records Result/Column,读真实表
SYS_ENTITYATTRIBUTE⋈SYS_ENTITY,引用目标经 DataDicService.getReferenceEntityTableName
反解),MetaController.attributes() 委托它(供 Section 2 同源消费)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:33:25 +08:00
4319178b66
feat(meta): GET /api/meta/entities 实体目录端点(引用列选择器数据源)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:31:34 +08:00
6c6038350a
feat(ai-recipe): typed list columns to match converter house-style
...
AI 生成页的列直接显原始值(布尔列显「true/false」),与转换器 house-style 的
「是/否」「日期格式化」不一致——live 验收时 boolean 列肉眼可见 true。本次按
blueprint field type 纯导出列渲染类型(不依赖 colMeta 枚举/引用元数据):
- boolean → type:mapping, map:{true/1:"是", false/0:"否"}
- date → type:date, format:YYYY-MM-DD
- datetime → type:datetime, format:YYYY-MM-DD HH:mm:ss
- string/integer/number 保持纯文本(默认渲染即正确)
同时在 PageComponentRegistry 注册 mapping/date/datetime 三个标准 amis 列渲染器
(display 类,转换页本就用,否则 typed-page-schema 门会拒含 type 的列 → 409)。
maintenance 与 tree 列均应用。
验证:platform-metadata 397 + platform-ai 61 测试绿;8093 live 重生成
EIP4AI_HSDEMO,served schema ENABLED 列=mapping,浏览器实证「启用」列显
「是」(原 true),0 console error;已清测试数据。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 19:29:02 +08:00
5f320503ee
feat(ai-recipe): bind tree-crud-v1 writes to backend service flows
...
tree-crud 与 maintenance 同病:AI 已生成 _ADD/_UPDATE/_DELETE 流但树页的增改删
仍绑自创 /api/entity/{表}/save|delete(「页不绑」)。本次把写入对齐保真层服务流:
- 新增顶级 / 加子 表单 → post:/api/flow/<TABLE>_ADD
- 节点编辑 表单 → post:/api/flow/<TABLE>_UPDATE
- 节点删除 → /api/flow/<TABLE>_DELETE,data={ids:"${<PK>}"}(基线 ids 口径)
数据读保留 /api/entity/<TABLE>/tree(层级构建器,无 flow 树端点,非写旁路);
per-node 操作列对树是恰当 house-style(节点操作天生 per-node),不套用 flat
CRUD 的「无操作列」规则。证据:2727 转换页 0 用 crud+childrenColumnName,
基线树走 input-tree/tree 组件,故树 recipe 的对齐核心=写口径而非组件重构。
验证:platform-metadata 397 + platform-ai 61 测试绿;8093 live 经 AI pipeline
生成 tree 页 + 浏览器实证渲染(工具栏/节点加子-编辑-删除/entity-tree 取数)
+ served schema 确认写绑定全走 _ADD/_UPDATE/_DELETE,0 console error。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 19:13:48 +08:00
1ff0d334d0
feat(ai-recipe): align maintenance-crud-v1 to converter house-style
...
AI 生成的单表维护页与转换器基线产出存在「陌生感」:缺查询区、走自创
/api/entity REST 而非保真层服务流、动作放 per-row 操作列。本次对齐:
- crud.api → /api/flow/<TABLE>_SEARCH(amis 自动追 page/perPage,无 adaptor)
+ selectable/checkOnItemClick/primaryField
- 补 filter 查询区(string 列 → input-text 文本搜索)
- 新增/编辑/删除挂 headerToolbar 操作 selectedItems(带 id + disabledOn 守卫,
删掉 per-row 操作列);增改 inline 表单绑 _ADD/_UPDATE + reload,编辑用
dialog data:{"&":"${selectedItems[0]}"} 预填 + hidden 主键;删除
data={ids:"${selectedItems|pick:<PK>|join:','}"}(照搬基线,键为 ids)
- 连带:AiFeatureDraftGenerator.expectedPageApi + AiAgentService 的
render-plan 门禁改 recipe-aware(原硬编码 /api/entity + /list? 会让整条
pipeline 409)
证据:2727 转换页聚合 0 用 per-row operation 列 / 1976 headerToolbar /
1211 filter / 1277 _SEARCH。DefaultFlowHelper 流名吻合,AI pipeline 仅生成
list 页无独立表单页 → recipe 保持 inline 自包含。
验证:platform-metadata 397 + platform-ai 61 测试绿;8093 live 经 AI pipeline
重生成页 + 浏览器实证查询区/工具栏/选中守卫/flow 取数/编辑预填全绿,0 console error。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 19:07:39 +08:00
d3b88467e0
feat(page-schema): converge net-new standard writes to single PageSchemaWriter (M3a)
...
sys_page_schema standard layer had two runtime writers: the converter import CLI and AiLocalReleaseExecutor's raw JDBC INSERT (the critic-flagged net-new bypass). Introduce PageSchemaWriter as the single runtime write function (typed-recipe validation warn-not-block + etag + UPSERT), and route both a new admin-gated PUT /api/page/schema/{id}/standard endpoint (net-new producer for the design-center 'new feature' path) and AiLocalReleaseExecutor.applyPageSchema through it. No remaining raw INSERT into sys_page_schema in the AI runtime write path.
Scope: page_schema runtime write only. The deployment-package SQL-text generator (AiAgentService.pageSchemaSql, offline human-apply artifact) and SchemaImportCli (batch converter import) are separate legitimate paths. AiLocalReleaseExecutor sys_serviceflow/sys_menu raw writes remain (follow-on). Completion = code-complete, integration-pending (end-to-end render proof env-gated).
Tests: PageSchemaWriterTest (4) + PageSchemaControllerTest putStandard success/403/split (27 total) + AiLocalReleaseExecutorTest/AiAgentApiPipelineTest unchanged-green. TDD.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 17:21:06 +08:00
bac69d85a7
fix(page-schema): scope typed-recipe gate to AI drafts, not designer overlay saves
...
putOverlay hard-rejected (400) any overlay using components/actions outside the ~35-component AI recipe whitelist. Existing converted pages use 13 unregistered component types (search-box/dialog/mapping/tabs/each/tree-select/input-date-range/…) plus 6 onEvent action types that are structurally actionType-without-type (ACTION_WITHOUT_COMPONENT), so editing+saving virtually any existing list page in the designer returned 400.
Split path: putOverlay (designer write path) now validates-and-warns instead of blocking; the strict typed gate stays on POST /api/page/schema/validate and the AI draft pipeline. Clears the only existing-page regression blocking the ai-agent merge to main. TDD: PageSchemaControllerTest#20 rewritten RED->GREEN; 37 schema tests green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 15:49:26 +08:00
bd4c642766
merge ai agent module
2026-06-19 14:01:09 +08:00
ccd74710fa
fix schedule job notify editor
ci / build-test-parity (push) Has been cancelled
2026-06-18 17:15:10 +08:00
d218c2ba6f
fix framework treegrid search and formeditgrid editors
2026-06-18 16:35:51 +08:00
b6e6964913
fix framework p2 custom views
2026-06-18 15:35:17 +08:00
22211b2557
feat(附件): 双态组件 + 新建/编辑保存落库打通
...
- 转换器 buildAttachmentField: 附件字段收敛为单个 input-file 双态组件
(staticOn ${__readonly} 查看只读可下载/编辑可增删; joinValues:false,extractValue:false
提交附件对象数组), 删除 each+service 容器, 查看/编辑同位置同布局
- FlowController 读路径 resolveAttachmentFields: 把保真层大写 DOCUMENT
({SYS_DOC_ID,FILENAME,FILESIZE}) 归一为 amis 小写契约 {id,name,value,url,sizeKb},
修掉"查看附件空白图标"
- FlowController 写路径 normalizeAttachmentFieldsForWrite(按 url=/api/file/ 签名识别):
修改流 → [{SYS_DOC_ID}] 交保真层 updateAttachments 对账(留/软删/不重复插);
新建流 → 捕获 docId+剥离 DOCUMENT, 保存后用返回主键 relinkInsertedAttachments
UPDATE sys_doc.businesskey 改挂(直接改挂、非复制 → 无 UNKNOWN 孤儿)
- FileController.upload: businesskey 右补白 36 位对齐保真层 getDoc(CHAR(36) 主键),
否则 loadDoc 读不到新附件; 响应补 value
- 测试: converter 154 + metadata 368 全绿
(新增 4c 读契约归一 / 4d 修改归一 / 4e 新建改挂 / FileController 补白)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-18 13:09:36 +08:00
5636b37220
feat: complete framework P2 deltas
2026-06-18 11:18:40 +08:00
eafd872271
feat: restore work calendar view
2026-06-18 10:26:07 +08:00
1ef3de1cc2
fix: restore entity type filtering for treegrid views
ci / build-test-parity (push) Has been cancelled
2026-06-18 10:09:41 +08:00
c9e4d35ca1
feat: wire schedule notifications and data import downloads
ci / build-test-parity (push) Has been cancelled
2026-06-18 09:59:55 +08:00
3523007f16
feat: add framework script editor actions
ci / build-test-parity (push) Has been cancelled
2026-06-18 09:39:07 +08:00
278b0da422
fix(platform): resolve picker load defaults
ci / build-test-parity (push) Has been cancelled
2026-06-18 01:51:59 +08:00
723443ea1e
fix(platform): implement short message send
2026-06-18 01:19:15 +08:00
f690f30552
fix(platform): repair message detail views
ci / build-test-parity (push) Has been cancelled
2026-06-18 00:49:03 +08:00
bf7bb2515b
fix(platform): complete picker parity and message detail
ci / build-test-parity (push) Has been cancelled
2026-06-18 00:30:01 +08:00
57f011e801
feat(metadata): restore legacy user transfer picker flow
ci / build-test-parity (push) Has been cancelled
2026-06-17 22:36:33 +08:00
78d27847dd
fix(metadata): make user picker searchable and show selections
ci / build-test-parity (push) Has been cancelled
2026-06-17 22:04:26 +08:00
88ff6f6bfb
feat(metadata): wire legacy process selector
ci / build-test-parity (push) Has been cancelled
2026-06-17 21:45:12 +08:00
1581a99d75
feat(metadata): wire legacy user select picker
ci / build-test-parity (push) Has been cancelled
2026-06-17 21:31:11 +08:00
57c3412aff
fix(flow): restore workflow task converted pages
2026-06-17 20:44:52 +08:00
fb8a37ddc5
fix(flow): 搜索时间段过滤——amis date-range 串转 DateTime[] 接通引擎区间查询
...
ci / build-test-parity (push) Has been cancelled
操作日志等"时间段查不动"(设了起止仍返回全部)根因:amis input-date(time)-range
把时间段提交为 "起,止" 逗号串,但引擎 GeneralPO 的搜索 where 构建只对 DateTime[]
值生成区间条件 (col>=起 AND col<=止)——收到 String 识别不了,整条时间段过滤被忽略。
且保真层的 coerceByFlowId 只在写流(NAMED_WRITE)调用,读流(SEARCH)根本不 coerce。
修:
- FlowInputCoercer.coerceValue DATE/TIME 支持区间:含逗号 → 拆两段各 parse → DateTime[]
(空段→null,引擎该侧不加约束);解析失败保留原值(fail-safe)。
- coerceDate 增 10-11 位 unix 秒识别(amis input-date(time)-range 默认 format=X 提交秒),
原仅认 13 位毫秒;ISO/yyyy-MM-dd[ HH:mm:ss] 等格式不变。
- 新增 coerceSearchDatesByFlowId / coerceSearchDatesByTable:只转 DATE/TIME 列
(其它过滤参一概不动 → 对已工作的文本/枚举/picker 搜索零回归)。
- FlowController 在 NAMED_READ / SYNTHESIZED(读流)路径调用上述方法。
注:单值日期 → DateTime(引擎 = 精确匹配,忠实老引擎);区间才是常见用法。
live 实证 SYS_DATA_LOG_SEARCH:无过滤 748179,远古区间 45643,2026-06 区间 535,
2026-06-15~18 格式化 53——不同区间返回不同结果(秒/毫秒/格式化字符串均识别)。
FlowInputCoercerTest 43 绿(+6 日期/区间用例)。已重建 platform-app + 重启 8093。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-17 17:57:46 +08:00
17c449cbf5
feat(converter): 机制①定制视图 delta 注入 + filterscript 级联过滤
...
机制①(engineclass Java delta 移植):老系统「定制视图」=数据驱动 XML 由
默认模板引擎渲染,但配 engineclass 的视图有 Java 子类在默认引擎之上加/改
按钮。转换器已复刻默认页但抓不到 Java delta——新增 EngineclassDelta 注册表
(engineclass FQN → 工具栏按钮 builder),convertGraded 增 engineclass 入参,
默认页转好后追加注入(默认页不变,仅 append);BatchConvertCli 透传
view_template.engineclass。
本轮注册 4 个 framework 定制视图:
- UserManageView:设置主岗位 + 查看用户菜单
- SystemLogMainView:按类型删除 + 全部删除
- SysUserLoginHistoryMainView:按查询条件删除记录
- SysUserLoginInfoMainView:查看登录记录(下钻登录历史)
配套后端:
- LogController(/api/admin/log/delete-all|delete-by-type|delete-by-logintime)
接 SystemLogManager;deleteByType 用 LogType 枚举白名单防注入。
- MenuController 新增 /api/admin/user/{userId}/menu(查看指定用户可见菜单树,
移植 UserRoleView,与 /api/admin/menu 共用 menuTreeFor 构建逻辑)。
filterscript 级联(P1):view_page 字段 filterscript 的「按其它字段值过滤本
字段」语义无法统一脚本引擎,故按性能优先做模式匹配——动态/常量等值绑定追加
到 select source(&COL=${TRIG}),含 SQL/服务调用/控制流/WhereClause 的复杂
脚本整条跳过(不误改);动态触发设 initFetchOn,添加态不发空参全量请求。
测试全绿(platform-converter + platform-metadata 共 490,0 失败 0 错误)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-17 16:32:50 +08:00
d427be2802
feat(picker): 列筛选下推,支持表单级联(组织→部门→岗位)
...
PickerController.list() 在 q 模糊查之后追加 applyColumnFilters:把请求里
按真实表列名传入的等值过滤参(白名单=该表真实列,排除 q/page/perPage/op
/value/_id/asUser/roles/asDepart/asOrg 等控制参)下推为等值条件,空值跳过,
escapeLikeValue 防注入。
配合转换器 filterscript 级联:上级选择框变化后 amis 以 &COL=${TRIG} 重拉
本选择框 source,由此端点据列值过滤,实现组织→部门→岗位的联动下拉。
PickerControllerTest 扩充覆盖列筛选/白名单/空值/转义。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-17 16:32:33 +08:00
abc32af6e9
fix(flow): _SEARCH 解析改 real-first,忠实旧引擎不再无脑合成
...
旧引擎 FlowServiceImpl.getFlowDefinition 只按 id 从 sys_serviceflow 读
存储流,无运行时合成(默认流在建实体时 addDefaultFlowService 已落库)。
原 EIP4 对所有 _SEARCH 一律合成默认流,盖住了 605 个真实定制流——致约
107 个列表打不开(合成默认流 order by CREATETIME,但表无 createtime 列)
+ 约 157 个排序错(真实流 start 脚本里的自定义排序/join/过滤被无视,
如登录历史 order by LOGINTIME DESC)。
改为 real-first:有真实 serviceflow 就优先真实流(NAMED_READ/WRITE,
跑其存储定义的正确语义),仅未迁默认流的实体才合成兜底。这样所有操作
(_ADD/_UPDATE/_LOAD/_SUBMIT 本就 real-first)统一为「读存储流」,与旧
系统一致。real-first 不会比旧系统更错——跑的就是旧系统跑的同一存储流;
真报错旧系统亦然(数据权限校验 / 缺表)。
A/B 验证(650 个 _SEARCH 引用):基线 OK=564 ERR=86 → real-first
OK=594 ERR=56,新修 33(含 SYS_USERLOGIN_HISTORY_SEARCH),3 个「回归」
经核为忠实暴露(2 个真实流的员工档案数据权限校验、1 个真实流引用缺表
PM_PROJECTNODEDATA),非 EIP4 执行 bug。
FlowNameResolverTest +1(searchSuffixWithRealFlow_prefersNamedRead)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-17 16:32:23 +08:00
718c5a5b9b
feat: add AI tree CRUD recipe
2026-06-17 13:03:38 +08:00
2b0b673ce9
feat: expose AI page recipes
2026-06-17 12:38:26 +08:00
fcc5719bc6
feat: enforce AI page recipe gate
2026-06-17 12:33:09 +08:00
e55072598e
feat: add AI page blueprint compiler
2026-06-17 12:14:57 +08:00
c1ff0db96b
feat: enforce typed page schema in AI drafts
2026-06-17 09:15:10 +08:00
5eb95a4ef4
feat: add typed page schema registry
2026-06-17 08:39:51 +08:00
3b4d3dbd24
feat: add AI agent auto-development pipeline
2026-06-17 07:32:54 +08:00
5e0845e2c2
feat(converter+metadata): 树+表 type=4 选择框 → picker 弹窗(分类树过滤+功能表格)
...
SelectDialog/MultiSelectDialog 的 dialogid 指向 type=4 treeGrid 模板时(如功能 8b89fd29:treetemplate分类树+gridtemplate功能表 rcolumnname=ENTITYTYPE),转换器 applyTreeGridPicker 产 picker:source=/api/template/treegrid?treeRef=&gridTable=&rcol=&node=${rcol},pickerSchema={mode:table, filter:[tree-select 分类 source=/api/template/{treeRef}/tree searchable], columns(取自gridtemplate display)}。降级规则:通用+自定义 type=4 都走此(不看 engineclass,自定义降级为通用 treeGrid 渲染,非扁平表)。后端 TemplateTreeController.treeGrid 每行补 _label(grid实体显示列)供 picker labelField 显名。spike 实证 amis picker pickerSchema=crud+tree-select filter 机制成立。live:菜单维护 功能 picker 开弹窗=分类树过滤+功能表格(7列单选),选行回填 id+显名,console 0错。caveat:8b89fd29 右表 VIEW_TEMPLATE 无物理 ENTITYTYPE 列→该 dialog 分类过滤不缩窄(数据特性非机制缺陷),其它 type=4 正常。converter121+metadata323测试绿。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-16 21:48:08 +08:00