beetlsql3-dev
Mlxa0324 2 years ago
parent 93b17e11c7
commit 37b7290072

@ -18,8 +18,8 @@ import java.util.Date;
@EqualsAndHashCode(callSuper=false) @EqualsAndHashCode(callSuper=false)
public class StudentLoginLogQuery extends PageParam { public class StudentLoginLogQuery extends PageParam {
@Query(name = "用户名", display = false) @Query(name = "用户名/姓名", display = false)
private String name; private String codeOrName;
@Query(name = "所属院校", display = false) @Query(name = "所属院校", display = false)
private Long universitiesCollegesId; private Long universitiesCollegesId;

@ -18,8 +18,8 @@ import java.util.Date;
@EqualsAndHashCode(callSuper=false) @EqualsAndHashCode(callSuper=false)
public class StudentUseLogQuery extends PageParam { public class StudentUseLogQuery extends PageParam {
@Query(name = "用户名", display = false) @Query(name = "用户名/姓名", display = false)
private String name; private String codeOrName;
@Query(name = "所属院校", display = false) @Query(name = "所属院校", display = false)
private Long universitiesCollegesId; private Long universitiesCollegesId;

@ -1532,8 +1532,8 @@ queryStudentLoginLogByCondition
WHERE WHERE
1 1
and ta.user_id is not null and ta.user_id is not null
@if(!isEmpty(name)) { @if(!isEmpty(codeOrName)) {
and tc.`name` like #'%'+name+'%'# and concat(tc.`name`, tc.`code`) like #'%'+codeOrName+'%'#
@} @}
@if(!isEmpty(classId)) { @if(!isEmpty(classId)) {
and and t.class_id = #classId# and and t.class_id = #classId#
@ -1629,8 +1629,8 @@ queryStudentUseLogByCondition
1 1
and ta.user_id is not null and ta.user_id is not null
AND tb.application_name IS NOT NULL AND tb.application_name IS NOT NULL
@if(!isEmpty(name)) { @if(!isEmpty(codeOrName)) {
and tc.`name` like #'%'+name+'%'# and concat(tc.`name`, tc.`code`) like #'%'+codeOrName+'%'#
@} @}
@if(!isEmpty(classId)) { @if(!isEmpty(classId)) {
and and t.class_id = #classId# and and t.class_id = #classId#

Loading…
Cancel
Save