package com.ruoyi.task.bonus;

import java.time.LocalDateTime;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ruoyi.bst.bonus.service.BonusService;

@Component
public class BonusTask {
    
    @Autowired
    private BonusService bonusService;

    /**
     * 分成打款
     */
    public void payBonus() {
        bonusService.payBonusBeforeTime(LocalDateTime.now());
    }
}
