券兑换码相关接口
This commit is contained in:
parent
60ca3e40fd
commit
b84655a7c0
|
|
@ -80,7 +80,7 @@ public class MkCouponRedemptionConfigServiceImpl extends ServiceImpl<MkCouponRed
|
|||
item.setStatus(0);
|
||||
}
|
||||
|
||||
MkCouponRedemptionConfigVO config = BeanUtil.copyProperties(item, MkCouponRedemptionConfigVO.class);
|
||||
MkCouponRedemptionConfigVO config = BeanUtil.copyProperties(item, MkCouponRedemptionConfigVO.class, "couponInfoList");
|
||||
if (StrUtil.isNotBlank(item.getCouponInfoList())) {
|
||||
config.setCouponInfoList(JSONArray.parseArray(item.getCouponInfoList(), CouponInfoVO.class));
|
||||
config.setCouponNum(config.getCouponInfoList().stream().map(CouponInfoVO::getNum).reduce(0, Integer::sum));
|
||||
|
|
|
|||
Loading…
Reference in New Issue