| | |
| | | @Autowired |
| | | private ITLocationService locationService; |
| | | |
| | | @Autowired |
| | | private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; |
| | | |
| | | @Value("${pushMinistryOfTransport}") |
| | | private boolean pushMinistryOfTransport; |
| | | |
| | |
| | | @Scheduled(cron = "0 0 1 1 * *") |
| | | public void taskMonth(){ |
| | | try { |
| | | if(pushMinistryOfTransport){ |
| | | List<TDriver> tDrivers = driverService.selectList(new EntityWrapper<TDriver>().eq("authState", 2).ne("flag", 3)); |
| | | for(TDriver driver : tDrivers){ |
| | | pushMinistryOfTransportUtil.baseInfoDriverStat(driver.getId()); |
| | | } |
| | | } |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |