From 45f867b6f1e83c52bc0c13dd99b8301e64692b30 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 09 Aug 2022 11:08:22 +0800 Subject: [PATCH] 20220808 --- src/main/java/cc/mrbird/febs/mall/service/impl/MemberProfitServiceImpl.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/MemberProfitServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/MemberProfitServiceImpl.java index dbc7a6a..89dab43 100644 --- a/src/main/java/cc/mrbird/febs/mall/service/impl/MemberProfitServiceImpl.java +++ b/src/main/java/cc/mrbird/febs/mall/service/impl/MemberProfitServiceImpl.java @@ -281,6 +281,9 @@ } BigDecimal income = profit.multiply(profitProp).divide(BigDecimal.valueOf(agentMemberList.size()), 2, RoundingMode.HALF_UP); + if (income.compareTo(BigDecimal.ZERO) < 1) { + continue; + } for (MallMember agentMember : agentMemberList) { // int reduce = walletService.reduce(income, agentMember.getId(), "score"); -- Gitblit v1.9.1