fix: 支付保存优惠券信息

This commit is contained in:
张松 2024-11-21 10:34:15 +08:00
parent 667151fefb
commit 97e2b91364
1 changed files with 2 additions and 2 deletions

View File

@ -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));