|
@@ -498,10 +498,10 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
//用优惠券更新状态
|
|
//用优惠券更新状态
|
|
|
OrderCoupon orderCoupon = iOrderCouponService.queryBySn(out_trade_no);
|
|
OrderCoupon orderCoupon = iOrderCouponService.queryBySn(out_trade_no);
|
|
|
if(Validator.isNotNull(orderCoupon)){
|
|
if(Validator.isNotNull(orderCoupon)){
|
|
|
- UpdateWrapper<Course> updateWrapper = new UpdateWrapper<>();
|
|
|
|
|
|
|
+ UpdateWrapper<Coupon> updateWrapper = new UpdateWrapper<>();
|
|
|
updateWrapper.setSql("user_status = "+1);
|
|
updateWrapper.setSql("user_status = "+1);
|
|
|
updateWrapper.eq("coupon_id", orderCoupon.getCouponId());
|
|
updateWrapper.eq("coupon_id", orderCoupon.getCouponId());
|
|
|
- iCourseService.update(updateWrapper);
|
|
|
|
|
|
|
+ iCouponService.update(updateWrapper);
|
|
|
}
|
|
}
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|