From 3564a0f318c7ffa4ab8f4e0b833b1a8719e9a1df Mon Sep 17 00:00:00 2001 From: lqy <3431632001@qq,com> Date: Sat, 14 Dec 2024 20:18:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=EF=BC=8CqueryMyCouponUs?= =?UTF-8?q?eByState?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/skyeye/coupon/service/impl/CouponUseServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyeye-shop/shop-store/src/main/java/com/skyeye/coupon/service/impl/CouponUseServiceImpl.java b/skyeye-shop/shop-store/src/main/java/com/skyeye/coupon/service/impl/CouponUseServiceImpl.java index e786376d..4841be99 100644 --- a/skyeye-shop/shop-store/src/main/java/com/skyeye/coupon/service/impl/CouponUseServiceImpl.java +++ b/skyeye-shop/shop-store/src/main/java/com/skyeye/coupon/service/impl/CouponUseServiceImpl.java @@ -204,7 +204,7 @@ public class CouponUseServiceImpl extends SkyeyeBusinessServiceImpl list = list(queryWrapper); couponService.setDataMation(list, CouponUse::getCouponId); List collect = list.stream().map(item -> { - item.setUsageCount(item.getUsedCount()); + item.setUsageCount(item.getCouponMation().getUseCount()); return item; }).collect(Collectors.toList()); return JSONUtil.toList(JSONUtil.toJsonStr(collect), null);