| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | |
| | | |
| | | public static final List<Integer> STA_WORK_CU = new ArrayList<Integer>() {{ |
| | | add(110);add(111);add(113);add(114);add(116);add(117); |
| | | // add(110);add(111);add(113);add(114);add(116);add(117); |
| | | add(117);add(116);add(114);add(113);add(111);add(110); |
| | | }}; |
| | | |
| | | public static final List<Integer> STA_WORK_CU_CAR = new ArrayList<Integer>() {{ |
| | |
| | | }}; |
| | | |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | // @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute(){ |
| | | for(Integer staNo : STA_WORK_CU){ |
| | | try{ |
| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | // @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute2(){ |
| | | try{ |
| | | for(Integer staNo : STA_WORK_CU){ |