feat: 完善仪表盘访问趋势区块内容

This commit is contained in:
2023-09-09 21:39:15 +08:00
parent dc1691f019
commit a1c20afb1b
16 changed files with 369 additions and 223 deletions

View File

@@ -9,6 +9,18 @@
(SELECT COUNT(*) FROM `sys_log` WHERE DATE(`create_time`) = DATE_SUB(CURDATE(), INTERVAL 1 DAY)) AS yesterdayPvCount
</select>
<select id="selectListDashboardAccessTrend"
resultType="top.charles7c.cnadmin.monitor.model.vo.DashboardAccessTrendVO">
SELECT
DATE(`create_time`) AS date,
COUNT(*) AS pvCount,
COUNT(DISTINCT `client_ip`) AS ipCount
FROM `sys_log`
GROUP BY DATE(`create_time`)
ORDER BY DATE(`create_time`) DESC
LIMIT #{days}
</select>
<select id="selectListDashboardPopularModule"
resultType="top.charles7c.cnadmin.monitor.model.vo.DashboardPopularModuleVO">
SELECT