mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
8b15445328
Former-commit-id: 1de24b7eb79676d1aba9d799a58c5a753290cf52
电梯应用 v2.0.10 — 服务发现修复 + org_id 策略验证
本版变更
| 变更项 | 说明 |
|---|---|
| 移除 @RibbonClients | ElevatorApplication 不再绑定任何 RibbonClient,三个上游服务统一走 Dubbo/ZooKeeper 发现 |
| 删除 RibbonConfiguration | NincaCrkStdRibbonConfiguration / OrgService / CommonService 全部删除 |
| 测试数据更新 | 人员/zone 替换为生产 DB 核验后的真实数据 |
部署
tar xzf cw-elevator-application-v2.0.10-*.tar.gz
cd cw-elevator-application-v2.0.10-*
# 1. DBA 写入测试策略
mysql -h <host> -u <user> -p cw-elevator-application < sql/01-test-policy-data.sql
# 2. 替换 JAR
cp cw-elevator-application-v2.0.10.jar /path/to/deploy/
./stop.sh && ./start.sh
# 3. 验证 (DBA 先准备策略数据,无需 DB 直连)
python3 scripts/verify_org_policy_fix.py --elevator-base-url http://127.0.0.1:18081 --skip-db
# 4. 清理
mysql -h <host> -u <user> -p cw-elevator-application < sql/02-test-data-cleanup.sql
测试人员 (均来自生产 DB,有 device → org → floorList 完整数据)
| 用例 | person_id | 姓名 | 组织 | devices |
|---|---|---|---|---|
| T1/T3/T4/T5/T6 | 1060601250460012544 | 丘文明 | 1403艾斯 | 122 |
| T2 | 1090914042800263168 | 陈美全 | 1405一博环保 | 116 |
| T7 | 964454497399468032 | 蒙海文 | 广发基金 | 279 |
文件清单
├── cw-elevator-application-v2.0.10.jar
├── README.md
├── sql/
│ ├── 01-test-policy-data.sql # 准备测试策略
│ ├── 02-test-data-cleanup.sql # 清理
│ └── 03-t3-manual-ops.sql # T3 skip-db 手动操作
├── scripts/
│ ├── verify_org_policy_fix.py # 7用例验证
│ ├── stub_org_service.py # 本地测试桩
│ └── diag_person_floors.sh # 楼层诊断
└── config/
└── v2-local-config.properties # 本地测试配置