From 92001290ae682ad228a3313cd7e66a3ab885e676 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Sat, 15 Apr 2023 22:21:12 +0800
Subject: [PATCH] 后台修改

---
 src/main/java/cc/mrbird/febs/mall/service/impl/AgentServiceImpl.java              |    2 +-
 src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/AgentServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/AgentServiceImpl.java
index a594154..871e0b7 100644
--- a/src/main/java/cc/mrbird/febs/mall/service/impl/AgentServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/mall/service/impl/AgentServiceImpl.java
@@ -428,7 +428,7 @@
             );
 
             if(poolScore.compareTo(BigDecimal.ZERO) > 0 && poolCash.compareTo(BigDecimal.ZERO) > 0){
-                BigDecimal divide = poolCash.divide(poolScore, 4, BigDecimal.ROUND_DOWN);
+                BigDecimal divide = poolCash.divide(poolScore, 5, BigDecimal.ROUND_DOWN);
                 dataDictionaryCustomMapper.updateDicValueByTypeAndCode(
                         PerkEnum.POOL_SCORE_PRICE.getType(),
                         PerkEnum.POOL_SCORE_PRICE.getCode(),
diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java
index f001269..b102fc8 100644
--- a/src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java
@@ -172,7 +172,7 @@
                 FlowTypeEnum.SCORE.getValue());
 
         mallMemberService.addMoneyFlow(memberId,
-                scoreAmount,
+                scoreAmount.subtract(amountFee),
                 MoneyFlowTypeEnum.SCORE_TO_CASH.getValue(),
                 orderNo,
                 null,
@@ -207,7 +207,7 @@
         );
 
         if(poolScore.compareTo(BigDecimal.ZERO) > 0 && poolCash.compareTo(BigDecimal.ZERO) > 0){
-            BigDecimal divide = poolCash.divide(poolScore, 4, BigDecimal.ROUND_DOWN);
+            BigDecimal divide = poolCash.divide(poolScore, 5, BigDecimal.ROUND_DOWN);
             dataDictionaryCustomMapper.updateDicValueByTypeAndCode(
                     PerkEnum.POOL_SCORE_PRICE.getType(),
                     PerkEnum.POOL_SCORE_PRICE.getCode(),

--
Gitblit v1.9.1