日志分析+导出

beetlsql3-dev
Mlxa0324 2 years ago
parent f783247adb
commit 2b95b640a9

@ -57,43 +57,43 @@ public class StudentLoginLogVO extends BaseEntity {
/**
*
*/
@ExcelProperty(value = "班级名称", index = 5)
@ExcelProperty(value = "班级名称", index = 4)
private String className;
/**
*
*/
@ExcelProperty(value = "登入时间", index = 6)
@ExcelProperty(value = "登入时间", index = 5)
private String loginTime;
/**
*
*/
@ExcelProperty(value = "登出时间", index = 7)
@ExcelProperty(value = "登出时间", index = 6)
private String logoutTime;
/**
* 线
*/
@ExcelProperty(value = "在线时长", index = 8)
@ExcelProperty(value = "在线时长", index = 7)
private String onlineDuration;
/**
* 线
*/
@ExcelProperty(value = "是否在线", index = 9)
@ExcelProperty(value = "是否在线", index = 8)
private Boolean isOnLine;
/**
* IP
*/
@ExcelProperty(value = "登录IP", index = 10)
@ExcelProperty(value = "登录IP", index = 9)
private String ip;
/**
* IP
*/
@ExcelProperty(value = "IP所属地", index = 11)
@ExcelProperty(value = "IP所属地", index = 10)
private String ipAddress;
/**
*
*/
@ExcelProperty(value = "登录次数", index = 12)
@ExcelProperty(value = "登录次数", index = 11)
private Integer loginCount;

@ -45,7 +45,7 @@ public class StudentUseLogVO extends BaseEntity {
private String universitiesCollegesName;
/**
*
*
*/
@ExcelProperty(value = "所属省份", index = 3)
private String universitiesCollegesProvince;

@ -1554,7 +1554,6 @@ queryStudentLoginLogByCondition
tc.`name`,
td.universities_colleges_name,
td.universities_colleges_province,
ta.ip,
td.class_name
) z
@ -1663,12 +1662,14 @@ queryStudentLogAnalysisByCondition
* 日志分析,统计报表
SELECT
@// 日期
DATE_FORMAT(ta.create_time, '%Y-%m-%d') as date_str,
te.universities_colleges_name,
te.universities_colleges_province,
count( 1 ) AS login_count,
count( DISTINCT ta.user_id ) AS on_line_count
@pageTag() {
@// 日期
DATE_FORMAT(ta.create_time, '%Y-%m-%d') as time,
te.universities_colleges_name,
te.universities_colleges_province,
count( 1 ) AS login_count,
count( DISTINCT ta.user_id ) AS on_line_count
@}
FROM
sys_log ta
LEFT JOIN student t ON ta.user_id = t.user_id

Loading…
Cancel
Save