From 06dad2095dbe4c465025e5bc6e0220521636e2c2 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期五, 15 十一月 2024 18:20:59 +0800
Subject: [PATCH] 代码提交

---
 xinquan-modules/xinquan-order/src/main/java/com/xinquan/order/controller/client/ClientOrderController.java |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/xinquan-modules/xinquan-order/src/main/java/com/xinquan/order/controller/client/ClientOrderController.java b/xinquan-modules/xinquan-order/src/main/java/com/xinquan/order/controller/client/ClientOrderController.java
index ecfabb9..f26ac42 100644
--- a/xinquan-modules/xinquan-order/src/main/java/com/xinquan/order/controller/client/ClientOrderController.java
+++ b/xinquan-modules/xinquan-order/src/main/java/com/xinquan/order/controller/client/ClientOrderController.java
@@ -614,18 +614,18 @@
                     OrderPaymentRecord one1 = orderPaymentRecordService.lambdaQuery().eq(OrderPaymentRecord::getOrderId, one.getId())
                             .eq(OrderPaymentRecord::getPaymentType, 4).one();
                     AppUserWalletRecord appUserWalletRecord = new AppUserWalletRecord();
-                    appUserWalletRecord.setAppUserId(data.getInviteUserId());
+                    appUserWalletRecord.setAppUserId(one.getAppUserId());
                     String reason=null;
                     switch (one.getOrderFrom()){
                         case 1:
                             Meditation data1 = remoteMeditationService.getMeditationById(one.getBusinessId()).getData();
                             appUserWalletRecord.setChangeType(2);
-                            reason = "购买【"+data1.getMeditationTitle()+"】";
+                            reason = "购买疗愈【"+data1.getMeditationTitle()+"】";
 
                             break;
                         case 2:
                             Course data2 = remoteCourseService.getCourseById(one.getBusinessId()).getData();
-                            reason = "购买【"+data2.getCourseTitle()+"】";
+                            reason = "购买课程【"+data2.getCourseTitle()+"】";
                             appUserWalletRecord.setChangeType(2);
                             // 增加用户与课程的关系表
                             if (one.getGiveUserId()!=null){
@@ -637,7 +637,7 @@
                             break;
                         case 3:
                             // 会员
-                            reason = "购买【"+one.getBuyContent()+"】";
+                            reason = "购买会员【"+one.getBuyContent()+"】";
                             appUserWalletRecord.setChangeType(2);
                             break;
                         case 4:
@@ -648,7 +648,6 @@
                     }
                     appUserWalletRecord.setReason(reason);
                     appUserWalletRecord.setAmount(one1.getPayAmount());
-                    appUserWalletRecord.setChildAppUserId(one.getAppUserId());
                     appUserWalletRecord.setOrderId(one.getId());
                     remoteAppUserService.addBalanceRecord(appUserWalletRecord);
                 }else{
@@ -818,12 +817,12 @@
                         case 1:
                             Meditation data1 = remoteMeditationService.getMeditationById(one.getBusinessId()).getData();
                             appUserWalletRecord.setChangeType(2);
-                            reason = "购买【"+data1.getMeditationTitle()+"】";
+                            reason = "购买疗愈【"+data1.getMeditationTitle()+"】";
 
                             break;
                         case 2:
                             Course data2 = remoteCourseService.getCourseById(one.getBusinessId()).getData();
-                            reason = "购买【"+data2.getCourseTitle()+"】";
+                            reason = "购买课程【"+data2.getCourseTitle()+"】";
                             appUserWalletRecord.setChangeType(2);
                             // 增加用户与课程的关系表
                             if (one.getGiveUserId()!=null){
@@ -835,7 +834,7 @@
                             break;
                         case 3:
                             // 会员
-                            reason = "购买【"+one.getBuyContent()+"】";
+                            reason = "购买会员【"+one.getBuyContent()+"】";
                             appUserWalletRecord.setChangeType(2);
                             break;
                         case 4:
@@ -873,12 +872,13 @@
                             }
                             break;
                         case 4:
-                            remoteAppUserService.addBalance(one.getAppUserId(),one.getRealPayAmount());
+                            System.err.println("进入充值");
+                            remoteAppUserService.addBalance(one.getAppUserId(),one.getTotalAmount());
                             AppUserWalletRecord appUserWalletRecord = new AppUserWalletRecord();
                             appUserWalletRecord.setAppUserId(one.getAppUserId());
                             appUserWalletRecord.setChangeType(1);
                             appUserWalletRecord.setReason("充值");
-                            appUserWalletRecord.setAmount(one.getRealPayAmount());
+                            appUserWalletRecord.setAmount(one.getTotalAmount());
                             appUserWalletRecord.setChildAppUserId(one.getAppUserId());
                             appUserWalletRecord.setOrderId(one.getId());
                             remoteAppUserService.addBalanceRecord(appUserWalletRecord);

--
Gitblit v1.7.1