删除优惠卷
新版优惠卷
This commit is contained in:
@@ -25,9 +25,6 @@ public class PayRefundOrderServiceImpl extends ServiceImpl<PayRefundOrderDao, Pa
|
||||
@Autowired
|
||||
private BuyOrderService buyOrderService;
|
||||
|
||||
@Autowired
|
||||
private CouponHistoryService couponHistoryService;
|
||||
|
||||
@Autowired
|
||||
private BuyOrderProductService buyOrderProductService;
|
||||
|
||||
@@ -84,13 +81,6 @@ public class PayRefundOrderServiceImpl extends ServiceImpl<PayRefundOrderDao, Pa
|
||||
|
||||
@Override
|
||||
public void businessOpt(BuyOrder order) {
|
||||
//优惠卷回滚
|
||||
if (order.getCouponId() != null) {
|
||||
Integer couponId = order.getCouponId();
|
||||
CouponHistoryEntity couponHistory = couponHistoryService.getById(couponId);
|
||||
couponHistory.setUseStatus(0);
|
||||
couponHistoryService.updateById(couponHistory);
|
||||
}
|
||||
//查询订单所有商品
|
||||
QueryWrapper<BuyOrderProduct> w1 = new QueryWrapper<>();
|
||||
w1.eq("order_id", order.getOrderId());
|
||||
|
||||
Reference in New Issue
Block a user