| | |
| | | throw new FebsException("权益不存在"); |
| | | } |
| | | |
| | | if (benefits.getIsClick() == 2) { |
| | | throw new FebsException("请联系客服,检查权益设置"); |
| | | } |
| | | |
| | | MallVipBenefits vipBenefits = this.baseMapper.selectById(benefits.getBenefitsId()); |
| | | if (vipBenefits == null) { |
| | | throw new FebsException("权益不存在"); |
| | |
| | | orderInfo.setStatus(OrderStatusEnum.WAIT_SHIPPING.getValue()); |
| | | orderInfo.setOrderType(goods.getGoodsType()); |
| | | orderInfo.setDeliveryType(2); |
| | | orderInfo.setIsFree(1); |
| | | orderInfo.setCarriage(BigDecimal.ZERO); |
| | | orderInfo.setAmount(BigDecimal.ZERO); |
| | | orderInfo.setAddressId(address.getId()); |