package com.yuchen.saas.park.service.task;

import com.yuchen.saas.park.service.service.resource.ISaasParkResourceInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author zhouhanwei
 * @create 2024/10/21 18:04
 */
@Component
@Slf4j
public class ParkResourceTask {

    @Resource
    private ISaasParkResourceInfoService iSaasParkResourceInfoService;

    /**
     * 每天的第 50 秒执行的定时任务
     */
    @Scheduled(cron = "50 0 0 * * ?")
    public void everyDayUpdateParkResource() {
        iSaasParkResourceInfoService.everyDayUpdateParkResource();
    }
}
