|
|
@@ -538,20 +538,20 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
|
|
|
@Override
|
|
|
public OrderVerificationVo verification(TOrder order) {
|
|
|
if (StringUtils.isBlank(order.getCouponReceiveId())) {
|
|
|
- throw new ServiceException("认领优惠券id为空");
|
|
|
+ throw new ServiceException("领取优惠卷id为空");
|
|
|
}
|
|
|
if (StringUtils.isBlank(order.getcId())) {
|
|
|
throw new ServiceException("订单id为空");
|
|
|
}
|
|
|
OrderVerificationVo orderVerificationVo = new OrderVerificationVo();
|
|
|
TOrder tOrder = this.getById(order.getcId());
|
|
|
+ log.info("订单信息,{}", tOrder);
|
|
|
+
|
|
|
orderVerificationVo.setCouponReceiveId(order.getCouponReceiveId());
|
|
|
CouponReceive couponReceive = couponReceiveService.getById(order.getCouponReceiveId());
|
|
|
Coupon coupon = couponService.getById(couponReceive.getCouponId());
|
|
|
- log.info("订单信息,{}", tOrder);
|
|
|
log.info("优惠卷信息,{}", coupon);
|
|
|
|
|
|
-
|
|
|
//折扣券
|
|
|
if (coupon.getDiscountType() == 2) {
|
|
|
//判断门槛金额
|