rwadurian/backend/services/authorization-service/src/infrastructure
hailin 6e84e370ee fix(authorization-service): 使用 accountSequence 替代 userId 查询团队统计
问题:planting-service 发送的 PlantingOrderPaid 事件中的 userId 是
订单表的自增主键(如 15),而不是 referral-service 中的真实 user_id
(如 25122600006)。这导致 handleTreePlanted 方法查询团队统计时
返回 null,社区权益无法被自动激活。

修复:改用事件中的 accountSequence 字段查询团队统计,因为
accountSequence 是跨服务一致的用户标识。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 22:51:32 -08:00
..
external fix(mobile): 修复用户详情页头像和用户ID显示问题 2025-12-24 01:28:28 -08:00
kafka fix(authorization-service): 使用 accountSequence 替代 userId 查询团队统计 2025-12-25 22:51:32 -08:00
persistence feat(authorization): 实现市/省团队自动升级为市/省区域机制 2025-12-23 03:56:38 -08:00
redis refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00