Commit d6b4f2ab by 周晓航

生产bug NPE修复

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 734a510a
...@@ -66,7 +66,7 @@ public class DeliverySharingService { ...@@ -66,7 +66,7 @@ public class DeliverySharingService {
discount = discountResult.getDiscounts().stream().filter((d) -> ActivityTypeEnum.TYPE_14.getCode().equals(d.getType())).findFirst().orElse(null); discount = discountResult.getDiscounts().stream().filter((d) -> ActivityTypeEnum.TYPE_14.getCode().equals(d.getType())).findFirst().orElse(null);
} }
if(discount!=null) { if(discount!=null) {
if(beanDto.getBenefitType() == 1) { if(beanDto!=null &&beanDto.getBenefitType() == 1) {
String desc = DELIVERY_DISCOUNT_DESC2; String desc = DELIVERY_DISCOUNT_DESC2;
shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, df.format(beanDto.getThresholdAmount().doubleValue() /100) )); shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, df.format(beanDto.getThresholdAmount().doubleValue() /100) ));
} }
......
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