From 2e2ba961d9a7849515cd16e6db35b8f754bc79f7 Mon Sep 17 00:00:00 2001 From: lifenlong Date: Sat, 24 Jul 2021 17:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=AE=A2=E5=8D=95=E4=B8=AD?= =?UTF-8?q?=E5=AD=98=E5=85=A5=E7=A0=8D=E4=BB=B7=E3=80=81=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E5=95=86=E5=93=81=E7=9A=84=E4=BF=83=E9=94=80=E5=95=86=E5=93=81?= =?UTF-8?q?ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/lili/modules/order/order/entity/dos/Order.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/framework/src/main/java/cn/lili/modules/order/order/entity/dos/Order.java b/framework/src/main/java/cn/lili/modules/order/order/entity/dos/Order.java index 7a02f2d7..cc4bf871 100644 --- a/framework/src/main/java/cn/lili/modules/order/order/entity/dos/Order.java +++ b/framework/src/main/java/cn/lili/modules/order/order/entity/dos/Order.java @@ -281,14 +281,6 @@ public class Order extends BaseEntity { Optional pintuanId = cartVO.getSkuList().get(0).getPromotions().stream() .filter(i -> i.getPromotionType().equals(PromotionTypeEnum.PINTUAN.name())).map(PromotionGoods::getPromotionId).findFirst(); promotionId = pintuanId.get(); - }else if (tradeDTO.getCartTypeEnum().name().equals(PromotionTypeEnum.POINTS_GOODS.name())) { - Optional pointsGoodsId = cartVO.getSkuList().get(0).getPromotions().stream() - .filter(i -> i.getPromotionType().equals(PromotionTypeEnum.POINTS_GOODS.name())).map(PromotionGoods::getPromotionId).findFirst(); - promotionId = pointsGoodsId.get(); - }else if (tradeDTO.getCartTypeEnum().name().equals(PromotionTypeEnum.KANJIA.name())) { - Optional kanjiaId = cartVO.getSkuList().get(0).getPromotions().stream() - .filter(i -> i.getPromotionType().equals(PromotionTypeEnum.KANJIA.name())).map(PromotionGoods::getPromotionId).findFirst(); - promotionId = kanjiaId.get(); } } }