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 2da0f556..d18afc4e 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 @@ -210,7 +210,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);