Showing
1 changed file
with
1 additions
and
1 deletions
@@ -2867,7 +2867,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | @@ -2867,7 +2867,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | ||
2867 | resp.setTariffAmount(buyerOrderGoodsService.getTariffAmount(goods)); | 2867 | resp.setTariffAmount(buyerOrderGoodsService.getTariffAmount(goods)); |
2868 | resp.setCutPromotionAmount(buyerOrderGoodsService.getCutPromotionAmountStr(goods)); | 2868 | resp.setCutPromotionAmount(buyerOrderGoodsService.getCutPromotionAmountStr(goods)); |
2869 | SellerOrder sellerOrder = sellerOrderMapper.selectBySkup(skup); | 2869 | SellerOrder sellerOrder = sellerOrderMapper.selectBySkup(skup); |
2870 | - resp.setSellerCouponCutAmount(sellerOrder.getCouponCutAmount() == null ? "0.00" : String.format("%.2f", sellerOrder.getCouponCutAmount().doubleValue())); | 2870 | + resp.setSellerCouponCutAmount(null == sellerOrder || sellerOrder.getCouponCutAmount() == null ? "0.00" : String.format("%.2f", sellerOrder.getCouponCutAmount().doubleValue())); |
2871 | SellerOrderMeta sellerMeta = sellerOrderMetaMapper.selectBySkupAndKey(skup, SELLER_ORDER_META_KEY_BACK_DELIVERY_ADDRESS); | 2871 | SellerOrderMeta sellerMeta = sellerOrderMetaMapper.selectBySkupAndKey(skup, SELLER_ORDER_META_KEY_BACK_DELIVERY_ADDRESS); |
2872 | if(sellerMeta!=null){ | 2872 | if(sellerMeta!=null){ |
2873 | JSONObject sellerMetaValue = JSONObject.parseObject(sellerMeta.getMetaValue()); | 2873 | JSONObject sellerMetaValue = JSONObject.parseObject(sellerMeta.getMetaValue()); |
-
Please register or login to post a comment