From cbf2486983b77a27af9968bbb362cb8d43789115 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 26 三月 2025 15:30:53 +0800
Subject: [PATCH] 修改统计bug和部分功能修改

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopWithdrawController.java |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopWithdrawController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopWithdrawController.java
index b5ab210..828b3c1 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopWithdrawController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopWithdrawController.java
@@ -208,12 +208,11 @@
         ShopBalanceStatement shopBalanceStatement = new ShopBalanceStatement();
         shopBalanceStatement.setShopId(shop.getId());
         shopBalanceStatement.setType(4);
-        shopBalanceStatement.setHistoricalBalance(balance);
         shopBalanceStatement.setVariableAmount(money);
-        shopBalanceStatement.setBalance(shop.getBalance());
         shopBalanceStatement.setCreateUserId(userId);
         shopBalanceStatement.setCreateTime(LocalDateTime.now());
         shopBalanceStatement.setObjectId(shopWithdraw.getId());
+        shopBalanceStatement.setChangeDirection(-1);
         shopBalanceStatementService.save(shopBalanceStatement);
     }
 
@@ -274,12 +273,11 @@
             ShopBalanceStatement shopBalanceStatement = new ShopBalanceStatement();
             shopBalanceStatement.setShopId(shop.getId());
             shopBalanceStatement.setType(4);
-            shopBalanceStatement.setHistoricalBalance(balance);
             shopBalanceStatement.setVariableAmount(money);
-            shopBalanceStatement.setBalance(shop.getBalance());
             shopBalanceStatement.setCreateUserId(loginUser.getUserid());
             shopBalanceStatement.setCreateTime(LocalDateTime.now());
             shopBalanceStatement.setObjectId(shopWithdraw.getId());
+            shopBalanceStatement.setChangeDirection(-1);
             shopBalanceStatementService.save(shopBalanceStatement);
         }
         shopWithdraw1.setAuditStatus(shopWithdraw.getAuditStatus());
@@ -325,12 +323,11 @@
             ShopBalanceStatement shopBalanceStatement = new ShopBalanceStatement();
             shopBalanceStatement.setShopId(shop.getId());
             shopBalanceStatement.setType(4);
-            shopBalanceStatement.setHistoricalBalance(balance);
             shopBalanceStatement.setVariableAmount(shopWithdraw.getMoney());
-            shopBalanceStatement.setBalance(shop.getBalance());
             shopBalanceStatement.setCreateUserId(shopWithdraw.getAuditUserId());
             shopBalanceStatement.setCreateTime(LocalDateTime.now());
             shopBalanceStatement.setObjectId(shopWithdraw.getId());
+            shopBalanceStatement.setChangeDirection(-1);
             shopBalanceStatementService.save(shopBalanceStatement);
             shopWithdraw.setStatus(3);
             shopWithdraw.setRemark(singlePayCallbackResult.getErrorCodeDesc());

--
Gitblit v1.7.1