|
|
d137577759
|
eip4dev: 构建本地开发库,日常开发完全脱离 5435
- tools/local-devdb/build_devdb.sh: 幂等构建脚本,分层 dump/restore
(ACT_* schema-only / 超500MB巨表 schema-only / 其余全量),
内置 5435/ceshi 库安全守门,参数化源/目标/阈值/巨表清单
- tools/local-devdb/sql/data-tables.txt: 必须全量的引擎元数据/组织表清单
- tools/local-devdb/本地开发库构建报告.md: 实跑报告(2738MB/345s/94.1%对拍通过)
- application-dev.yml: dev profile 指向 localhost:5433/eip4dev,端口 8093
- README.md: 补三套 profile 说明(dev/local/默认)及常用命令
- SysUserService.java: 修复 MASTERDEPART 列不存在导致登录 500 的 bug
- docs/迁移手册.md: 追加三条新坑位(MASTERDEPART/sys_page_schema/shell 中文变量名)
验证: 登录 OK / list(1079行) / picker(5条) / ParityCli 1166实体 803 OK_FULL+294 OK_SAMPLE
完全本地: pg_stat_activity 全部连接来自 127.0.0.1:eip4dev,无 5435 连接
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 18:19:01 +08:00 |
|
|
|
6cc7b3fb61
|
P2-3: 横切服务桩换 framework 真实现(文件/日志/消息)
保真层原样移植三块横切服务,删除对应桩,bean 名/包名/签名不动:
- 文件 com.dsasp.server.file.*:FileServiceImpl(bean fileService)真实现,
存储后端经替换类 FTPClientTemplate(保包名/类名/签名,FTP→本地盘,
根目录 eip4.file.root 配置化默认 ./data/files,resolveSafe 防 ../ 逃逸);
BASE64Decoder→java.util.Base64、ant zip→java.util.zip、commons-codec→MessageDigest。
- 日志 com.dsasp.server.log.*:SystemLogManagerImpl/DataOperatorLogger/
DataLogRecorderImpl + 异步调度(DataLogManager/ProcessLogThread/ProcessSysLogThread)
原样移植,落 SYS_LOG/SYS_DATA_LOG/SYS_DATA_LOGITEM(后者 insert-only 无审计列,§5.1)。
- 消息 com.dsasp.server.mail.*:SystemEmailServiceImpl + SystemEmail/SystemEmailService
移植;SMTP 配置缺省时降级 no-op + WARN,不阻塞启动(§5.38)。
装配/配置/自举/验证:
- LegacyXmlWiring 等价补齐三处 jdbcTemplate setter + MainApp.destPath 注入(§4.1);
- application.yml 加 eip4.file.root;bootstrap-xservice.sql 自举四张横切表 + LOGLEVEL;
- 删除 StubFileService/StubSystemLogManager/StubDataOperatorLog(StubProjectSwitchService
属 viewframework 域非本任务范畴,保留);
- 单测 12 + 本地 DB 集成 4,全模块 mvn clean test 绿(含 ArchUnit);8087 启动验证毕已 kill。
报告:platform-auth/P2横切服务实测报告.md;坑入 docs/迁移手册.md §3.1/§3.2/§5.36-5.38。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 14:06:31 +08:00 |
|
|
|
0ebe6d692b
|
P2-1: 移植 EIP3 组织/用户/角色/OTP 模块进保真层(原样,包名签名不动)
framework/com.dsasp.server.organize/src 的 5 个 impl 原样移入 platform-legacy-core:
OrganizationServiceImpl / UserFindServiceImpl / RoleServiceImpl /
UserOtpServiceImpl / AssignmentHandlerImpl(Activator 不移植,见手册 §5.17)。
补齐依赖闭包(legacy-core 原无):
- common 接口 5 个:OrganizationService / UserFindService / RoleService /
UserOtpService / AssignmentHandler
- AssignmentHandlerImpl 的 workflow 依赖:ProcessDefinitionService + WFMould
OTP 库 jotpverify.jar(ft.otp.verify.OTPVerify,无公网坐标)经
platform-legacy-core/local-libs 模块内私有仓库解析(file://),
父 pom 不动,构建可复现(手册 §5.OTP)。
LegacyXmlWiring 补 4 个 impl 的 setter 注入(等价原 organize service.xml
<property>,旧类零修改,手册 §4.1)。
privilege 模块 diff 核查:除 OSGi Activator 外已全部在仓库,无需再搬。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 13:38:37 +08:00 |
|
|
|
33d793b825
|
feat(auth): P2-2 Spring Security 无状态 JWT 认证链路 + UserSession 引擎上下文适配
- jjwt 0.12.6 HS256;密钥配置化(EIP4_AUTH_JWT_SECRET),启动期强度校验,不入仓库
- 密码兼容:复刻 framework EncryptUtil 无盐 MD5 + 常量时间比对(侦察证据见报告)
- JwtAuthFilter:SecurityContext + 引擎 UserSession(静态 ThreadLocal)请求级 set/finally clear,16线程×200次并发隔离单测
- SecurityConfig 双链:prod 严格 401 / 非 prod 保留对拍测试通道(单测断言生产关闭)
- EntityController.buildCtx 三级优先(asUser > JWT > ADMIN),修复 JWT ctx 被 ADMIN 默认覆盖
- 实测:登录签发/过滤 16 行与 DB 吻合/伪造过期全 401;ci.sh 全绿;手册新增 §5.29-5.31
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 13:37:34 +08:00 |
|
|
|
f0500647be
|
feat(metadata): 服务流执行 REST 门面 FlowController + 本地自举 + 单测
P1-2 第二步:报表方案 D 类——79 个 selectservice 服务流的统一 REST 化入口。
FlowController(com.eip4.platform.metadata.web):
GET /api/flow/{id}?k=v query 参数 → 服务流入参 map(查询/报表类)
POST /api/flow/{id} body JSON body → 服务流入参 map(参数多/带结构)
统一封装 {status,msg,data};响应递归归一化(GeneralPOJO→平面行、
listSelect 结果 {listresult,pagecount}→amis {items,total})。OpenAPI 注解。
REST 入口读写时机:引擎不区分读写,P1 不在门面做引擎级读写闸,由调用方按
「流定义 XML 审阅」确认查询/报表类后放行;风险与 P2 三层防护待办写入注释与报告。
适配(P1 服务流脚本编译):SecureGroovyScriptEngineFactory 的 DEFAULTIMPORTSLIST
移除两条 Vaadin 客户端 UI 默认导入(client.groovy.TestService、
com.dsasp.client.viewframework.component.MainComponent)——它们逐脚本注入,
classpath 缺失会使每个服务流脚本编译失败;与服务端取数无关,原值登记于注释供 diff。
LegacyXmlWiring:补 FlowServiceImpl.setJdbcTemplate(等价原 XML <property> 注入)。
本地自举:platform-parity bootstrap-flow.sql(幂等)——在 eip4m0 上建 SYS_SERVICEFLOW
+ 自描述元数据 + 最小查询流 EIP4M0_USERGROUP_SEARCH,参照 parity bootstrap 思路,
无客户库副本时引擎可独立跑通。
单测 18 例:FlowModelParseTest(9,XML 解析/参数绑定/默认流生成/往返序列化)+
FlowControllerTest(8,mock 引擎,GET/POST 参数透传 + 响应归一化)+
FlowExecuteLocalIT(1,@SpringBootTest local profile,自举 SQL + 真实引擎执行 +
二次一致;eip4m0 不可达则 assumeTrue 跳过)。全绿。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 12:01:15 +08:00 |
|
|
|
c2b3c5004f
|
docs: 技术文档随仓库——架构设计/迁移手册/C3基线/C5报告迁入 docs/
文档分层:随代码演进的技术文档入 git(团队 clone 可得、有版本与评审);
决策档案与含商务内容的治理文档留工作区 docs/(不随仓库分发,外包 clone 不携带)。
全部交叉引用已更新(README×2/实测报告×2/登记表/pom/ArchUnit 注释)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 11:26:44 +08:00 |
|
|
|
73105d8b22
|
feat(parity): C1 录制/重放/自对拍三件 + 本地自举 schema + local profile
- recorder(资源交付):旧系统侧 Spring3.1/JDK6 AOP 录制切面源码
(SqlRecordingAspect/SqlRecord/JsonOut)+ 集成说明含生产流量旁路录制方案
- replay:ReplayRunner 读录制 JSONL,对新引擎复跑同 SQL 逐行 diff
- selfcheck:ParityCli/SelfCheckRunner/ParitySeeder/EngineHttpClient/
JdbcResultReader——引擎读路径 vs 直连 JDBC 逐行对拍,CLI --seed --all 跑批
- bootstrap-sys.sql:本地空库自举,7 个自描述系统实体 + 物理基表(可重复执行)
- application-local.yml:profile=local 指向 localhost:5433/eip4m0,端口 8084
引擎适配:补 SYS_ENUMERATE 自描述元数据(BOOLEAN 列每行回调避 NPE);
外键 REFERENCEID 用 SYS_REFERENCE_ID 而非表名(避免 JOIN null 语法错)。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-10 23:41:14 +08:00 |
|
|
|
a9219c5c77
|
chore: 落地 eip4-platform 多模块骨架基线(PoC→工程化)
从 eip4-poc 迁入双层制模块化单体:保真层 platform-legacy-core
(com.dsasp 引擎原样)+ 现代层 platform-metadata/auth/flow-gateway/
converter/ai + platform-app 启动器。ArchUnit 纪律固化(保真层禁依赖现代层)。
此为 C1 对拍工作的编译通过基线。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-10 23:40:51 +08:00 |
|