| | |
| | | @Autowired |
| | | private IEquipmentService iEquipmentService; |
| | | |
| | | @Autowired |
| | | private IEventLogService eventLogService; |
| | | |
| | | public static final String HEAD = "statistic1::"; |
| | | |
| | | @Scheduled(cron="0 15 * * * ?")//每小时15分钟时执行 |
| | |
| | | |
| | | |
| | | redisTemplate.set(HEAD+"outCar",iEquipmentService.countByTypeAndStatus(0)+"");//出发车辆 |
| | | redisTemplate.set(HEAD+"open","0");//危险开启 |
| | | QueryWrapper<EventLog> wrapper2=new QueryWrapper<>(); |
| | | wrapper2.eq("type",5); |
| | | redisTemplate.set(HEAD+"open",eventLogService.count(wrapper2)+"");//危险开启 |
| | | |
| | | QueryWrapper<Customer> wrapper = new QueryWrapper<>(); |
| | | String format = DateUtil.format(new Date(), "yyyy-MM-dd"); |