院校使用日志导出

beetlsql3-dev
Mlxa0324 2 years ago
parent 82d3264c9c
commit 0a00e986d4

@ -19,22 +19,22 @@ public class SystemUseLogsAnalysisDTO extends PageParam {
/**
* 使-
*/
private Date startTime;
private Date startDayTime;
/**
* 使-
*/
private Date endTime;
private Date endDayTime;
/**
* ID
*/
private String universitiesCollegesId;
/**
* ID
*
*/
private String applicationId;
private String firstName;
/**
*
*
*/
private String courseLabelType;
private String secondName;
}

@ -515,58 +515,34 @@ applicationUseLogsAnalysis
second_name,
universities_colleges_name,
universities_colleges_id,
user_type,
province,
day_time,
use_duration,
add_time,
org_id,
user_id
sum(use_duration) as sum_use_duration
@}
from student_teacher_system_use_log_analysis t
where 1=1
@if(!isEmpty(id)){
and t.id =#id#
@}
where 1=1
@if(!isEmpty(firstName)){
and t.first_name =#firstName#
@}
@if(!isEmpty(secondName)){
and t.second_name =#secondName#
@}
@if(!isEmpty(universitiesCollegesName)){
and t.universities_colleges_name =#universitiesCollegesName#
@}
@if(!isEmpty(universitiesCollegesId)){
and t.universities_colleges_id =#universitiesCollegesId#
@}
@if(!isEmpty(universitiesCollegesIdPlural)){
and find_in_set(t.universities_colleges_id,#universitiesCollegesIdPlural#)
@}
@if(!isEmpty(userType)){
and t.user_type =#userType#
@}
@if(!isEmpty(province)){
and t.province =#province#
@}
@if(!isEmpty(dayTime)){
and t.day_time =#dayTime#
@}
@if(!isEmpty(useDuration)){
and t.use_duration =#useDuration#
@}
@if(!isEmpty(addTime)){
and t.add_time =#addTime#
@}
@if(!isEmpty(orgId)){
and t.org_id =#orgId#
@}
@if(!isEmpty(orgIdPlural)){
and find_in_set(t.org_id,#orgIdPlural#)
@if(!isEmpty(startDayTime)){
and t.day_time >= #startDayTime#
@}
@if(!isEmpty(userId)){
and t.user_id =#userId#
@if(!isEmpty(endDayTime)){
and t.day_time < #endDayTime#
@}
@if(!isEmpty(userIdPlural)){
and find_in_set(t.user_id,#userIdPlural#)
group by
first_name,
second_name,
universities_colleges_name,
universities_colleges_id,
province,
day_time
@pageIgnoreTag() {
ORDER BY day_time DESC
@}
Loading…
Cancel
Save