package com.zy.asrs.task; import com.zy.core.utils.CrnOperateProcessUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; @Component public class PlannerExecutor { @Autowired private CrnOperateProcessUtils crnOperateProcessUtils; @Scheduled(cron = "0/1 * * * * ? ") @Transactional public void executePlanner() { crnOperateProcessUtils.plannerExecute(); } }