Commit 8984c024 by 孙昱

sunyu::update::修复回填月享卡2.0数据bug

parent b3f7784a
......@@ -143,7 +143,7 @@ public class CouponDiscountCalculation {
if (null != monthCardDiscount){
for (ActivityCalculationDiscountResponseDto.CalculationDiscountResult.Goods goods : goodsList) {
ActivityCalculationDiscountResponseDto.CalculationDiscountResult.Goods.GoodsDiscount card2Discount =
goods.getDiscounts().stream().filter(goodsDiscount -> ActivityTypeEnum.TYPE_38.getCode() == goodsDiscount.getType()).findFirst().get();
goods.getDiscounts().stream().filter(goodsDiscount -> ActivityTypeEnum.TYPE_38.getCode() == goodsDiscount.getType()).findFirst().orElse(null);
if(CollectionUtils.isNotEmpty(goods.getDiscounts()) && null != card2Discount ){
for (CartGoods cartGoods : cartGoodsList) {
if (StringUtils.equals(cartGoods.getCartGoodsUid(),goods.getCartGoodsUid())){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment