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

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

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

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

Loading…
Cancel
Save