商家申请记录 填充商家名称

消费返现
This commit is contained in:
2025-10-16 18:21:58 +08:00
parent 1e480dd2d9
commit 9bdb09232c
3 changed files with 24 additions and 1 deletions

View File

@@ -133,6 +133,8 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
private MkDiscountActivityService discountActService;
@Resource
private MkShopRechargeService shopRechargeService;
@Resource
private MkConsumeCashbackService consumeCashbackService;
// 延迟 5 秒
private static final long DELAY = 5;
//重试次数
@@ -1090,6 +1092,9 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|| (payType != null && !ArrayUtil.contains(payTypes, payType))) {
//下单赠送积分
pointsService.consumeAwardPoints(shopUser.getId(), orderInfo);
if(!orderInfo.getPayType().equals(PayEnums.CASH_PAY.getValue())){
consumeCashbackService.cashback(orderInfo.getShopId(), shopUser.getUserId(), orderInfo.getPayAmount(), orderInfo.getId(), orderInfo.getOrderNo());
}
}
}
}