From 71656127d2d3fa023eb767343a9ac01172f2802d Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期三, 27 八月 2025 21:31:40 +0800
Subject: [PATCH] bug修改

---
 cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java b/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java
index 3db9c87..b491797 100644
--- a/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java
+++ b/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java
@@ -474,6 +474,7 @@
             VipPaymentVO res = new VipPaymentVO();
             res.setHeadImg(appUser.getHeadImg());
             res.setName(appUser.getName());
+            res.setVipEndTime(appUser.getVipEndTime());
             if (appUser.getVipEndTime()==null){
                 res.setIsVip(0);
             }else if (appUser.getVipEndTime().before(new Date())){
@@ -484,12 +485,15 @@
             appUserService.updateById(appUser);
             List<Vip> vips = vipClient.listAll();
             res.setVipList(vips);
+
+            return ResultUtil.success(res);
+
         } catch (Exception e) {
             e.printStackTrace();
             return ResultUtil.runErr();
         }
-        return ResultUtil.success();
     }
+
 //
 //    /**
 //     * 购买年度会员支付微信回调V3版本回调
@@ -763,18 +767,18 @@
 
     @PostMapping("/appUser/queryAppUserByIds")
     @ResponseBody
-    public List<TAppUser> queryAppUserByIds(@RequestBody UserDetailsOfSearch search){
-        LambdaQueryWrapper<TAppUser> tAppUserLambdaQueryWrapper = new LambdaQueryWrapper<>();
+    public List<TStudent> queryAppUserByIds(@RequestBody UserDetailsOfSearch search){
+        LambdaQueryWrapper<TStudent> tAppUserLambdaQueryWrapper = new LambdaQueryWrapper<>();
         if(ToolUtil.isNotEmpty(search.getIdCard())){
-            tAppUserLambdaQueryWrapper.eq(TAppUser::getIdCard, search.getIdCard());
+            tAppUserLambdaQueryWrapper.eq(TStudent::getIdCard, search.getIdCard());
         }
         if(ToolUtil.isNotEmpty(search.getPhone())){
-            tAppUserLambdaQueryWrapper.eq(TAppUser::getPhone, search.getPhone());
+            tAppUserLambdaQueryWrapper.eq(TStudent::getPhone, search.getPhone());
         }
         if(ToolUtil.isNotEmpty(search.getName())){
-            tAppUserLambdaQueryWrapper.eq(TAppUser::getName, search.getName());
+            tAppUserLambdaQueryWrapper.eq(TStudent::getName, search.getName());
         }
-        tAppUserLambdaQueryWrapper.in(TAppUser::getId,search.getUseIds());
-        return appUserService.list(tAppUserLambdaQueryWrapper);
+        tAppUserLambdaQueryWrapper.in(TStudent::getId,search.getUseIds());
+        return studentService.list(tAppUserLambdaQueryWrapper);
     }
 }

--
Gitblit v1.7.1