From ae32c3a7d77e2ed114555623c70e3fbd1d6aba59 Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期四, 10 三月 2022 08:47:45 +0800
Subject: [PATCH] 违章记录

---
 xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/schedulings/StatisticPcScheduleImpl.java |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/schedulings/StatisticPcScheduleImpl.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/schedulings/StatisticPcScheduleImpl.java
index 48bc1d4..1156308 100644
--- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/schedulings/StatisticPcScheduleImpl.java
+++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/schedulings/StatisticPcScheduleImpl.java
@@ -51,6 +51,9 @@
     @Autowired
     private IEquipmentService iEquipmentService;
 
+    @Autowired
+    private IEventLogService eventLogService;
+
     public static final String HEAD = "statistic1::";
 
     @Scheduled(cron="0 15 * * * ?")//姣忓皬鏃�15鍒嗛挓鏃舵墽琛�
@@ -71,7 +74,7 @@
         redisTemplate.set(HEAD+"notice",messageService.getTotalCount()+"");//閫氱煡鍏憡鏉℃暟
         redisTemplate.set(HEAD+"video","0");//瑙嗛鐩戞帶娆℃暟
         redisTemplate.set(HEAD+"call",iRemoteCallService.count()+"");//杩滅▼鍛煎彨娆℃暟
-        redisTemplate.set(HEAD+"paiCha","0");//浜嬫晠闅愭偅鎺掓煡
+        redisTemplate.set(HEAD+"paiCha",iDrivingRecordService.count2()+"");//浜嬫晠闅愭偅鎺掓煡
 
         redisTemplate.set(HEAD+"wx",iCustomerService.sumLogin()+"");//灏忕▼搴忕櫥闄嗘鏁�
         redisTemplate.set(HEAD+"wxRate",iCustomerService.countOpenId()+"");//灏忕▼搴忎娇鐢ㄧ巼
@@ -86,7 +89,9 @@
 
 
         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");

--
Gitblit v1.9.1