佣金计算 打印日志

This commit is contained in:
2025-01-22 16:41:40 +08:00
parent c4c04aecb6
commit 58c8b644bc
2 changed files with 2 additions and 1 deletions

View File

@@ -104,7 +104,7 @@ public class PaymentTask {
@Scheduled(cron = "0 */5 * * * *") // Run every 5 minutes
public void updateAffiliateInfoWithPayment(){
log.info("佣金计算定时器");
// log.info("佣金计算定时器");
affiliateService.updateAffiliateInfoWithPayment();
}

View File

@@ -209,6 +209,7 @@ public class AffiliateServiceImpl extends ServiceImpl<AffiliateMapper, Affiliate
// 查询是否绑定affiliateId
Account account = accountService.getById(accountId);
if (!Objects.isNull(account.getInvitationCode())){
log.info("结算订单id为{}的佣金", orderInfo.getId());
// 3、若有, 直接更新affiliate的所得
Affiliate affiliate = baseMapper.selectById(account.getInvitationCode());
Float payerTotal = paymentInfo.getPayerTotal();