From b4cba628d459b3bcadda9ea4fd664e87ef71756b Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Mon, 27 Oct 2025 21:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/MkDistributionUserServiceImpl.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/cash-service/market-service/src/main/java/com/czg/service/market/service/impl/MkDistributionUserServiceImpl.java b/cash-service/market-service/src/main/java/com/czg/service/market/service/impl/MkDistributionUserServiceImpl.java index a8cbfb1a6..6cf6329e1 100644 --- a/cash-service/market-service/src/main/java/com/czg/service/market/service/impl/MkDistributionUserServiceImpl.java +++ b/cash-service/market-service/src/main/java/com/czg/service/market/service/impl/MkDistributionUserServiceImpl.java @@ -92,16 +92,20 @@ public class MkDistributionUserServiceImpl extends ServiceImpl centerUser(Long userId) { - QueryWrapper totalIncomeSumQueryWrapper = new QueryWrapper(); - totalIncomeSumQueryWrapper.select("sum(total_income) as totalIncome,sum(pending_income) as pendingIncome,sum(withdrawn_income) as cashOutAmount"); - totalIncomeSumQueryWrapper.eq(MkDistributionUser::getUserId, userId); - totalIncomeSumQueryWrapper.eq(MkDistributionUser::getIsDel, 0); - DistributionCenterTopVO centerTopVO = getObjAs(totalIncomeSumQueryWrapper, DistributionCenterTopVO.class); +// QueryWrapper totalIncomeSumQueryWrapper = new QueryWrapper(); +// totalIncomeSumQueryWrapper.select("sum(total_income) as totalIncome,sum(pending_income) as pendingIncome,sum(withdrawn_income) as cashOutAmount"); +// totalIncomeSumQueryWrapper.eq(MkDistributionUser::getUserId, userId); +// totalIncomeSumQueryWrapper.eq(MkDistributionUser::getIsDel, 0); +// DistributionCenterTopVO centerTopVO = getObjAs(totalIncomeSumQueryWrapper, DistributionCenterTopVO.class); // 封装顶部收益数据 Map result = new HashMap<>(5); - result.put("totalIncome", centerTopVO == null ? BigDecimal.ZERO : centerTopVO.getTotalIncome()); - result.put("pendingIncome", centerTopVO == null ? BigDecimal.ZERO : centerTopVO.getPendingIncome()); - result.put("cashOutAmount", centerTopVO == null ? BigDecimal.ZERO : centerTopVO.getUnCashOutAmount()); +// result.put("totalIncome", centerTopVO == null ? BigDecimal.ZERO : centerTopVO.getTotalIncome()); +// result.put("pendingIncome", centerTopVO == null ? BigDecimal.ZERO : centerTopVO.getPendingIncome()); +// result.put("cashOutAmount", centerTopVO == null ? BigDecimal.ZERO : centerTopVO.getUnCashOutAmount()); + + result.put("totalIncome", 0); + result.put("pendingIncome", 0); + result.put("cashOutAmount", 0); result.put("activates", activates(userId, 1, 5)); result.put("unActivates", unActivates(userId, 1, 3));