在线人数图

beetlsql3-dev
Mlxa0324 2 years ago
parent 9eb97c135b
commit df7c4921a7

@ -212,23 +212,26 @@ systemUseLogsAnalysis
select count(1) as count,
@if(!isEmpty(day)) {
DATE_FORMAT(create_time, '%Y-%m-%d') as time
DATE_FORMAT(create_time, '%Y-%m-%d %H:%i') as time
@// 如果没指定天数,则默认是月度统计
@} else {
DATE_FORMAT(create_time, '%Y-%m') as time
DATE_FORMAT(create_time, '%Y-%m-%d') as time
@}
from sys_log t
where t.request_url = #requestUrl#
where t.method = #method#
group by 1
@if(!isEmpty(day)) {
and DATE_FORMAT(create_time, '%Y-%m-%d') = DATE_FORMAT(#day#, '%Y-%m-%d')
order by DATE_FORMAT(create_time, '%Y-%m-%d') asc
group by 2
order by 2 asc
@// 如果没指定天数,则默认是月度统计
@} else {
order by DATE_FORMAT(create_time, '%Y-%m') asc
group by 2
order by 2 asc
@}

Loading…
Cancel
Save