package com.ruoyi.interfaces.runner;

import com.ruoyi.interfaces.service.PtServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author LinQiLong
 * @create 2021/12/21 15:43
 * @desc 在系统开始运行时，获取申请数量Top10的数据和最近新增数据Top20
 */
@Order(22)
@Component
public class RankingListReadRunner implements ApplicationRunner {

    @Autowired
    private PtServiceService ptServiceService;

    @Override
    public void run(ApplicationArguments args) {
        ptServiceService.refreshRankingList();
    }

}
