## 问题 预种奖励直接走 planting-service → wallet-service,绕过 reward-service, 导致前端"我"页面读 reward-service 的 summary/settleable 数据时看不到预种奖励。 ## 方案 前端同时读 reward-service(正常认种)和 planting-service(预种),合并展示。 ## 后端(planting-service) - PrePlantingRewardEntryRepository: 新增 findByRecipientAccountSequence() 方法, 按收款方账户查询预种奖励记录(注入 PrismaService 替代事务 client) - PrePlantingController: 新增 GET /pre-planting/my-rewards 端点, 返回当前用户作为收款方收到的预种奖励汇总+明细列表 格式与 reward-service 的 settleable 对齐(id, rightType, usdtAmount, sourceOrderNo 等) ## 前端(Flutter mobile-app) - PrePlantingService: 新增 getMyRewards() 方法 + PrePlantingMyRewards/PrePlantingRewardItem 数据类 - profile_page.dart: 并行调用 prePlantingService.getMyRewards(), 将预种奖励转为 SettleableRewardItem 合并到可结算列表, summary.settleableUsdt 也加上预种金额 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| edit_profile_page.dart | ||
| profile_page.dart | ||