From 0b9e60f0bada4cc39187a9dd3c36bf37452f63de Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期四, 31 七月 2025 18:58:10 +0800
Subject: [PATCH] 修改bug

---
 ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/miniapp/AppCouponController.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/miniapp/AppCouponController.java b/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/miniapp/AppCouponController.java
index f876f1e..7bdb2fa 100644
--- a/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/miniapp/AppCouponController.java
+++ b/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/miniapp/AppCouponController.java
@@ -112,6 +112,7 @@
         vo.setId(coupon.getCouponId());
         vo.setName(coupon.getCouponName());
         vo.setType(coupon.getCouponType());
+        vo.setSendType(coupon.getSendType());
         vo.setMoneyThreshold(coupon.getMoneyThreshold());
         vo.setDiscountPercent(coupon.getDiscountPercent());
         vo.setDiscountMoney(coupon.getDiscountMoney());
@@ -136,16 +137,16 @@
             vo.setUseGoods(sb.substring(0, sb.length() - 1));
         }
         vo.setLimitFlag(coupon.getSendLimitFlag());
-        vo.setReceiveNum(coupon.getSendLimitNumber());
+        vo.setReceiveNum(coupon.getLimitNumber());
         int count = memberCouponService.count(new QueryWrapper<MemberCoupon>().eq("coupon_id", couponId).eq("del_flag", 0));
-        vo.setLaveNum(coupon.getSendLimitNumber() - count);
+        vo.setLaveNum(coupon.getLimitNumber() - count);
         Long userId = SecurityUtils.getUserId();
         List<MemberCoupon> list = memberCouponService.list(new QueryWrapper<MemberCoupon>().eq("coupon_id", couponId).eq("user_id", userId).eq("del_flag", 0));
         vo.setStatus(list.isEmpty() ? null : list.get(0).getCouponStatus());
         return R.ok(vo);
     }
-    
-    
+
+
     @ResponseBody
     @PostMapping("/shareCoupon/{couponId}")
     @ApiOperation(value = "分享优惠券【2.0】", tags = "领券中心")

--
Gitblit v1.7.1