package com.zy.asrs.task; import com.core.common.Cools; import com.zy.asrs.entity.Pla; import com.zy.asrs.service.PlaService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import java.util.List; @Slf4j @Component public class PlaDetlScheduler { @Autowired private PlaService plaService; @Scheduled(cron = "0/60 * * * * ? ") private void execute(){ List plaList = plaService.selectToHistory(); if(Cools.isEmpty(plaList)){ return; } for (Pla pla : plaList){ } } }