From eb40b658f64ba6f0563d8971d226befb72f7edfc Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 6 Jan 2026 23:22:22 -0800 Subject: [PATCH] =?UTF-8?q?revert(wallet-service):=20=E5=9B=9E=E6=BB=9A=20?= =?UTF-8?q?fixedAccountTypes=20=E6=98=A0=E5=B0=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 撤销错误的账户类型映射修改,恢复原始映射: - S0000000001 → HQ_COMMUNITY - S0000000002 → COST_ACCOUNT - S0000000003 → OPERATION_ACCOUNT 修改后端映射会影响 reward-service、authorization-service 等多个服务。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../src/application/services/wallet-application.service.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/services/wallet-service/src/application/services/wallet-application.service.ts b/backend/services/wallet-service/src/application/services/wallet-application.service.ts index eac08329..88528c8a 100644 --- a/backend/services/wallet-service/src/application/services/wallet-application.service.ts +++ b/backend/services/wallet-service/src/application/services/wallet-application.service.ts @@ -3314,9 +3314,7 @@ export class WalletApplicationService { const transferredStats = await this.prisma.ledgerEntry.groupBy({ by: ['accountSequence'], where: { accountSequence: { in: accountSeqs }, amount: { lt: 0 } }, _sum: { amount: true } }); const receivedMap2 = new Map(receivedStats2.map(s => [s.accountSequence, s._sum.amount])); const transferredMap = new Map(transferredStats.map(s => [s.accountSequence, s._sum.amount])); - // [2026-01-07] 修复:修正账户类型映射,与前端 SYSTEM_ACCOUNT_NAMES 保持一致 - // S0000000001=运营1(COST), S0000000002=运营2(OPERATION), S0000000003=总部储蓄(HQ) - const fixedAccountTypes: Record = { 'S0000000001': 'COST_ACCOUNT', 'S0000000002': 'OPERATION_ACCOUNT', 'S0000000003': 'HQ_COMMUNITY', 'S0000000004': 'RWAD_POOL_PENDING', 'S0000000005': 'SHARE_RIGHT_POOL', 'S0000000006': 'FEE_COLLECTION' }; + const fixedAccountTypes: Record = { 'S0000000001': 'HQ_COMMUNITY', 'S0000000002': 'COST_ACCOUNT', 'S0000000003': 'OPERATION_ACCOUNT', 'S0000000004': 'RWAD_POOL_PENDING', 'S0000000005': 'SHARE_RIGHT_POOL', 'S0000000006': 'FEE_COLLECTION' }; const fixedAccounts: Array<{ accountSequence: string; accountType: string; usdtBalance: string; totalReceived: string; totalTransferred: string; status: string; createdAt: string }> = []; const provinceAccounts: Array<{ accountSequence: string; regionCode: string; regionName: string; usdtBalance: string; totalReceived: string; status: string }> = []; const cityAccounts: Array<{ accountSequence: string; regionCode: string; regionName: string; usdtBalance: string; totalReceived: string; status: string }> = [];