使用日志统计

beetlsql3-dev
Mlxa0324 2 years ago
parent 5d3029fda2
commit f40f1a333b

@ -508,9 +508,19 @@ getExcelValues
applicationUseLogsAnalysis
===
* 院校使用时长统计分析
select
@pageTag(){
first_name, -- 一级名称(原型图中的子系统名称)
second_name, -- 二级名称(所属模块)
universities_colleges_name, -- 院校名称
universities_colleges_id, -- 院校ID
province, -- 院校省份
day_time, -- 使用日期
sum_use_duration, -- 使用总时长
use_people_count -- 使用人数
@}
from (
select
first_name, -- 一级名称(原型图中的子系统名称)
second_name, -- 二级名称(所属模块)
universities_colleges_name, -- 院校名称
@ -519,7 +529,6 @@ applicationUseLogsAnalysis
day_time, -- 使用日期
sum(use_duration) as sum_use_duration, -- 使用总时长
count(distinct user_id) as use_people_count -- 使用人数
@}
from student_teacher_system_use_log_analysis t
where 1=1
@if(!isEmpty(firstName)){
@ -547,3 +556,4 @@ applicationUseLogsAnalysis
@pageIgnoreTag() {
ORDER BY day_time DESC
@}
)z

@ -220,7 +220,7 @@ systemUseLogsAnalysis
from sys_log t
where t.request_url = #requestUrl#
where t.method = #method#
and t.method = #method#
@if(!isEmpty(day)) {
and DATE_FORMAT(create_time, '%Y-%m-%d') = DATE_FORMAT(#day#, '%Y-%m-%d')

Loading…
Cancel
Save