fix: 支付保存优惠券信息
This commit is contained in:
parent
667151fefb
commit
97e2b91364
|
|
@ -2154,13 +2154,13 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||
|
||||
ArrayList<OrderInfoUserCouponVo> productArr = new ArrayList<>();
|
||||
couponInfo.getProductCouponMap().values().forEach(item -> {
|
||||
BeanUtil.copyProperties(item, OrderInfoUserCouponVo.class);
|
||||
productArr.add(BeanUtil.copyProperties(item, OrderInfoUserCouponVo.class));
|
||||
});
|
||||
infoDTO.setProductCoupon(productArr);
|
||||
|
||||
ArrayList<OrderInfoUserCouponVo> fullArr = new ArrayList<>();
|
||||
couponInfo.getFullReductionCouponMap().values().forEach(item -> {
|
||||
BeanUtil.copyProperties(item, OrderInfoUserCouponVo.class);
|
||||
fullArr.add(BeanUtil.copyProperties(item, OrderInfoUserCouponVo.class));
|
||||
});
|
||||
infoDTO.setFullReductionCoupon(fullArr);
|
||||
orderInfo.setCouponInfoList(JSONObject.toJSONString(infoDTO));
|
||||
|
|
|
|||
Loading…
Reference in New Issue