From 31d61e4e22154ceafd69b365f7538c2feb5873c4 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 12 二月 2025 10:09:22 +0800
Subject: [PATCH] 修改bug

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/TVipServiceImpl.java               |    1 +
 ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/TAppUserVipDetailController.java |    6 +-----
 ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TVipOrderController.java             |    5 ++++-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/TAppUserVipDetailController.java b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/TAppUserVipDetailController.java
index 27c8667..40b7d6e 100644
--- a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/TAppUserVipDetailController.java
+++ b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/TAppUserVipDetailController.java
@@ -49,11 +49,7 @@
 				.last(" and now() between start_time and end_time"));
 		return R.ok(one);
 	}
-
-	@Resource
-	private VipClient vipClient;
-	@Resource
-	private OtherClient otherClient;
+	
 
 	@GetMapping("/getVipUseDetail")
 	@ApiOperation(value = "生效会员列表", tags = {"小程序-个人中心"})
diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TVipOrderController.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TVipOrderController.java
index b58cdde..806ec5a 100644
--- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TVipOrderController.java
+++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/TVipOrderController.java
@@ -3,6 +3,8 @@
 
 import cn.afterturn.easypoi.excel.ExcelExportUtil;
 import cn.afterturn.easypoi.excel.entity.ExportParams;
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.ruoyi.account.api.dto.GiveVipDto;
 import com.ruoyi.account.api.feignClient.AppUserClient;
 import com.ruoyi.common.core.domain.R;
@@ -114,7 +116,8 @@
     @GetMapping("/deleteVipOrder")
     @ApiOperation(value = "批量删除会员订单", tags = {"管理后台-会员订单"})
     public AjaxResult deleteVipOrder(String id) {
-        vipOrderService.removeBatchByIds(Arrays.asList(id.split(",")));
+        vipOrderService.update(new LambdaUpdateWrapper<TVipOrder>().in(TVipOrder::getId, Arrays.asList(id.split(",")))
+                .set(TVipOrder::getDelFlag, 1));
         return AjaxResult.success();
     }
     
diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/TVipServiceImpl.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/TVipServiceImpl.java
index 38db787..ef7f4b5 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/TVipServiceImpl.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/TVipServiceImpl.java
@@ -111,6 +111,7 @@
         shopOrder.setPaymentStatus(1);
         shopOrder.setPaymentType(payType);
         shopOrder.setPayTime(LocalDateTime.now());
+        shopOrder.setDelFlag(false);
         R<Long> longR = orderClient.addVipOrder(shopOrder);
         if(200 != longR.getCode()){
             return AjaxResult.error(longR.getMsg());

--
Gitblit v1.7.1