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>
This commit is contained in:
2026-06-10 23:41:14 +08:00
parent 3aec8f292e
commit 73105d8b22
13 changed files with 1905 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# ============================================================================
# Spring profile「local」—— M0/C1 本地自举对拍环境
# 启动:mvn spring-boot:run -Dspring-boot.run.profiles=local
# 或:java -jar ... --spring.profiles.active=local
# 数据源指向本地 PG 15(localhost:5433/eip4m0,用户 zhengwr 无密码)。
# 与默认 application.yml(指向客户库副本 5435)隔离,互不影响。
# ============================================================================
spring:
datasource:
url: jdbc:postgresql://localhost:5433/eip4m0
username: zhengwr
password:
hikari:
maximum-pool-size: 5
read-only: false
server:
port: 8084
logging:
level:
com.dsasp: INFO
org.springframework.jdbc.core: INFO