From 7006932fa6e891d7f92088b9f59fa26c290160a6 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 10 十二月 2024 20:29:07 +0800
Subject: [PATCH] 1

---
 se-modules/se-system/src/main/resources/mapper/system/IndexMapper.xml |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/se-modules/se-system/src/main/resources/mapper/system/IndexMapper.xml b/se-modules/se-system/src/main/resources/mapper/system/IndexMapper.xml
index acecf2a..4185284 100644
--- a/se-modules/se-system/src/main/resources/mapper/system/IndexMapper.xml
+++ b/se-modules/se-system/src/main/resources/mapper/system/IndexMapper.xml
@@ -28,12 +28,21 @@
 		where oper_url = '/index/addAccessLog' and oper_time >= #{createTime};
 	</select>
 
-	<select id="sysVisitList" resultType="java.util.Map">
+	<!--select id="sysVisitList" resultType="java.util.Map">
 		select title, count(*) count
 		from sys_oper_log
 		where oper_time >= #{createTime} and (title like '%骞冲彴' or title like '%鍒嗙郴缁�' or title like '%鐮旇鍘�' or title = '瑁呭搴�')
 		group by title
 		order by count desc
 		limit ${amount};
+	</select-->
+
+	<select id="sysVisitList" resultType="java.util.Map">
+		select menu_name "name",
+			(select count(*) from sys_oper_log b where b.title = a.menu_name and date(oper_time) = date(now())) "tcount",
+			(select count(*) from sys_oper_log b where b.title = a.menu_name and week(oper_time) = week(now())) "wcount"
+		from sys_menu a
+		where a.mark = 'index' and a.menu_type = 'C'
+		order by a.order_num;
 	</select>
 </mapper> 
\ No newline at end of file

--
Gitblit v1.9.3