Commit ba1be733 by ping.wu

设置到付,isDispatchFree为空判断

parent f75e1e9e
...@@ -987,7 +987,7 @@ public class ShoppingCartMallServiceImpl implements ShoppingCartNewService { ...@@ -987,7 +987,7 @@ public class ShoppingCartMallServiceImpl implements ShoppingCartNewService {
throw new ServiceException(ResponseResult.SHOPPING_CART_QUERY_DELIVERY_TEMPLATE_ERR); throw new ServiceException(ResponseResult.SHOPPING_CART_QUERY_DELIVERY_TEMPLATE_ERR);
} }
Boolean isDispatchFree = queryDeliveryTemplateResponseVo.getData().getIsDispatchFree(); Boolean isDispatchFree = queryDeliveryTemplateResponseVo.getData().getIsDispatchFree();
if(!isDispatchFree) { if(isDispatchFree != null && !isDispatchFree) {
deliveryAmount = Long.valueOf(null == queryDeliveryTemplateResponseVo.getData().getFreight() ? 0 : queryDeliveryTemplateResponseVo.getData().getFreight() ); deliveryAmount = Long.valueOf(null == queryDeliveryTemplateResponseVo.getData().getFreight() ? 0 : queryDeliveryTemplateResponseVo.getData().getFreight() );
} }
//邮费付款方式 DeliveryTemplateCostTypeEnum //邮费付款方式 DeliveryTemplateCostTypeEnum
......
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