优惠券结束时间
This commit is contained in:
@@ -102,7 +102,11 @@ public class MkShopRechargeServiceImpl extends ServiceImpl<MkShopRechargeMapper,
|
||||
if (!couponIdList.isEmpty()) {
|
||||
Map<Long, ShopCoupon> couponMap = shopCouponService.list(new QueryWrapper().in(ShopCoupon::getId, couponIdList)).stream().collect(Collectors.toMap(ShopCoupon::getId, v -> v));
|
||||
couponInfoDTOS.forEach(item -> {
|
||||
couponInfoVOS.add(new CouponInfoVO().setCoupon(couponMap.get(item.getId())).setNum(item.getNum()));
|
||||
ShopCoupon shopCoupon = couponMap.get(item.getId());
|
||||
if (shopCoupon != null) {
|
||||
shopCoupon.setInfo();
|
||||
}
|
||||
couponInfoVOS.add(new CouponInfoVO().setCoupon(shopCoupon).setNum(item.getNum()));
|
||||
});
|
||||
}
|
||||
detailVO.setCouponInfoList(couponInfoVOS);
|
||||
|
||||
Reference in New Issue
Block a user