院校使用日志导出

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 * ID
*/ */
private String universitiesCollegesId; private String universitiesCollegesId;
/** /**
* ID *
*/ */
private String applicationId; private String firstName;
/** /**
* *
*/ */
private String courseLabelType; private String secondName;
} }

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