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 | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 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 5026b0b..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
@@ -14,7 +14,7 @@
import java.io.IOException;
import java.util.Date;
import java.util.List;
-
+//澶у睆棣栭〉缁熻
@Component
public class StatisticPcScheduleImpl {
@@ -51,9 +51,12 @@
@Autowired
private IEquipmentService iEquipmentService;
+ @Autowired
+ private IEventLogService eventLogService;
+
public static final String HEAD = "statistic1::";
- @Scheduled(cron="0 */10 * * * ?")//姣忓皬鏃�
+ @Scheduled(cron="0 15 * * * ?")//姣忓皬鏃�15鍒嗛挓鏃舵墽琛�
public void execute(){
redisTemplate.set(HEAD+"car",iCarService.count()+"");//杞﹁締
redisTemplate.set(HEAD+"user",userService.countByType(0)+"");//鍙告満
@@ -71,9 +74,9 @@
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+"wx",iCustomerService.sumLogin()+"");//灏忕▼搴忕櫥闄嗘鏁�
redisTemplate.set(HEAD+"wxRate",iCustomerService.countOpenId()+"");//灏忕▼搴忎娇鐢ㄧ巼
int i = iOrderTaskService.countLike();
redisTemplate.set(HEAD+"like",i+"");//浜掑姩娆℃暟
@@ -86,11 +89,13 @@
redisTemplate.set(HEAD+"outCar",iEquipmentService.countByTypeAndStatus(0)+"");//鍑哄彂杞﹁締
- redisTemplate.set(HEAD+"outCar","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");
wrapper.between("create_time",format+" 00:00:00",format+" 23:59:59");
- redisTemplate.set(HEAD+"outCar",iCustomerService.count(wrapper)+"");//浠婃棩鏂板鍟嗘埛
+ redisTemplate.set(HEAD+"addCustomer",iCustomerService.count(wrapper)+"");//浠婃棩鏂板鍟嗘埛
}
}
--
Gitblit v1.9.1