rwadurian/backend/services/wallet-service/src
hailin 846915badc fix(wallet-service): 使用事务确保 settleUserPendingRewards 原子性
- 将 pending_rewards 状态更新和 wallet_accounts 余额更新包装在 Prisma $transaction 中
- 修复 Bug 4: pending_rewards 被标记为 SETTLED 但 settleable_usdt 未更新的问题
- 添加 PrismaService 依赖注入
- 同时减少 pendingUsdt/pendingHashpower,增加 settleableUsdt/settleableHashpower
- 记录 REWARD_TO_SETTLEABLE 类型的流水

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 06:58:07 -08:00
..
api feat: 省市团队账户及待领取奖励逐笔追踪 2025-12-13 03:32:47 -08:00
application fix(wallet-service): 使用事务确保 settleUserPendingRewards 原子性 2025-12-13 06:58:07 -08:00
config feat(wallet-service): add Redis caching for wallet queries 2025-12-06 18:37:13 -08:00
domain feat: 省市团队账户及待领取奖励逐笔追踪 2025-12-13 03:32:47 -08:00
infrastructure fix(wallet-service): 修复待领取奖励显示和结算触发问题 2025-12-13 05:51:28 -08:00
shared refactor!: 重构账户序列号格式 (BREAKING CHANGE) 2025-12-12 09:11:18 -08:00
app.module.ts feat: 省市团队账户及待领取奖励逐笔追踪 2025-12-13 03:32:47 -08:00
main.ts feat(sync): implement Outbox Pattern for reward-service to wallet-service sync 2025-12-10 23:26:49 -08:00