rwadurian/backend/services/authorization-service/src
hailin ed47e7ab2d fix(authorization): 修复下级团队认种数重复减去自己认种数的 BUG
问题描述:
- 社区/省公司/市公司的初始考核判断错误
- 原因: referral-service 返回的 totalTeamPlantingCount 已经是"下级团队认种数"(不含自己)
  但 authorization-service 又减了一次 selfPlantingCount,导致结果偏小

示例:
- D25121400003: 自己认种12棵,下级认种14棵
- 修复前: subordinateTeamPlantingCount = 14 - 12 = 2 (错误!)
- 修复后: subordinateTeamPlantingCount = 14 (正确)

影响范围:
- 社区权益初始考核 (10棵门槛)
- 省公司权益初始考核
- 市公司权益初始考核 (100棵门槛)
- 所有使用 subordinateTeamPlantingCount 的业务逻辑

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-14 09:15:00 -08:00
..
api refactor!: 重构账户序列号格式 (BREAKING CHANGE) 2025-12-12 09:11:18 -08:00
application fix(authorization): 修复 grantProvinceCompany 业务验证逻辑 2025-12-14 00:15:09 -08:00
config refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
domain fix(authorization): 修复 grantProvinceCompany 业务验证逻辑 2025-12-14 00:15:09 -08:00
infrastructure fix(authorization): 修复下级团队认种数重复减去自己认种数的 BUG 2025-12-14 09:15:00 -08:00
shared refactor!: 重构账户序列号格式 (BREAKING CHANGE) 2025-12-12 09:11:18 -08:00
app.module.ts feat(reward): add internal APIs for reward distribution 2025-12-10 21:49:13 -08:00
main.ts fix(authorization): add Kafka microservice for @EventPattern to work 2025-12-10 10:08:55 -08:00