From 9411a5a1eec19f3460eca9a6c82ebb46dc4e2f0d Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期四, 26 六月 2025 20:06:58 +0800
Subject: [PATCH] 大屏接口bug修改

---
 ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/WithdrawServiceImpl.java |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/WithdrawServiceImpl.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/WithdrawServiceImpl.java
index e1364d9..8cd4046 100644
--- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/WithdrawServiceImpl.java
+++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/WithdrawServiceImpl.java
@@ -14,16 +14,10 @@
 import com.ruoyi.common.core.utils.StringUtils;
 import com.ruoyi.common.core.vo.UserDto;
 import com.ruoyi.common.redis.service.RedisService;
-import com.ruoyi.order.entity.Order;
-import com.ruoyi.order.entity.Withdraw;
-import com.ruoyi.order.entity.WithdrawDetail;
-import com.ruoyi.order.entity.WithdrawalSetting;
+import com.ruoyi.order.entity.*;
 import com.ruoyi.order.mapper.WithdrawMapper;
 import com.ruoyi.order.request.WithdrawExportRequest;
-import com.ruoyi.order.service.OrderService;
-import com.ruoyi.order.service.WithdrawDetailService;
-import com.ruoyi.order.service.WithdrawService;
-import com.ruoyi.order.service.WithdrawalSettingService;
+import com.ruoyi.order.service.*;
 import com.ruoyi.order.vo.MoneyQueryRequest;
 import com.ruoyi.order.vo.UserWithdrawRecordVO;
 import com.ruoyi.order.vx.HttpUtil;
@@ -56,6 +50,8 @@
 
     @Resource
     private WithdrawalSettingService withdrawalSettingService;
+    @Resource
+    private WithdrawRecordService withdrawRecordService;
     @Resource
     private OrderService orderService;
     @Resource
@@ -245,8 +241,16 @@
         withdraw.setApplyForMoney(order.getOrderMoney());
         withdraw.setOrderId(orderId);
         withdraw.setCityCode(order.getCityCode());
-
         this.save(withdraw);
+        WithdrawRecord withdrawRecord = new WithdrawRecord();
+        withdrawRecord.setWithdrawId(withdraw.getId());
+        withdrawRecord.setOrderId(withdraw.getOrderId());
+        withdrawRecord.setUserId(withdraw.getUserId());
+        withdrawRecord.setWithdrawType(1);
+        withdrawRecord.setCreateTime(new Date());
+        withdrawRecord.setAuditStatus(1);
+        withdrawRecordService.save(withdrawRecord);
+
         // 未开启全局 提现审核,则用户提现不需要后台审核
         if (Constants.ZERO.equals(withdrawalSetting.getEnableProcess())) {
             // 已通过

--
Gitblit v1.7.1