成绩111

beetlsql3-dev
xuliangtong 2 years ago
parent a3bbcfcf6a
commit 574b789cdf

@ -288,4 +288,48 @@ public class TeacherOpenCourseScoreDashboard extends BaseEntity{
public void setTeacherOpenCourseId(Long teacherOpenCourseId) {
this.teacherOpenCourseId = teacherOpenCourseId;
}
//region 虚拟字段
/**
*
*/
private String studentSn;
/**
*
*/
private String studentName;
/**
*
*/
private String className;
public String getStudentSn() {
return studentSn;
}
public void setStudentSn(String studentSn) {
this.studentSn = studentSn;
}
public String getStudentName() {
return studentName;
}
public void setStudentName(String studentName) {
this.studentName = studentName;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
//endregion
}

@ -216,4 +216,31 @@ public class TeacherOpenCourseScoreDashboardQuery extends PageParam {
public void set_given(String _given) {
this._given = _given;
}
//region 查询字段
/**
*
*/
private String studentOrName;
/**
* id
*/
private String classId;
public String getStudentOrName() {
return studentOrName;
}
public void setStudentOrName(String studentOrName) {
this.studentOrName = studentOrName;
}
public String getClassId() {
return classId;
}
public void setClassId(String classId) {
this.classId = classId;
}
}

@ -4,9 +4,14 @@ queryByCondition
select
@pageTag(){
t.*
t.*,
s1.student_sn,
s1.student_name,
s2.class_name
@}
from teacher_open_course_score_dashboard t
left join student s1 on s1.student_id = t.student_id
left join school_class s2 on s2.class_id = s1.class_id
where 1=1
@//数据权限该sql语句功能点,如果不考虑数据权限,可以删除此行
and #function("teacherOpenCourseScoreDashboard.query")#
@ -70,6 +75,12 @@ queryByCondition
@if(!isEmpty(teacherOpenCourseId)){
and t.teacher_open_course_id =#teacherOpenCourseId#
@}
@if(!isEmpty(studentOrName)){
and (s1.student_name like #'%'+studentOrName+'%'# or s1.student_sn like #'%'+studentOrName+'%'#)
@}
@if(!isEmpty(classId)){
and s2.class_id =#classId#
@}
queryByConditionQuery
@ -78,9 +89,14 @@ queryByConditionQuery
select
@pageTag(){
t.*
t.*,
s1.student_sn,
s1.student_name,
s2.class_name
@}
from teacher_open_course_score_dashboard t
left join student s1 on s1.student_id = t.student_id
left join school_class s2 on s2.class_id = s1.class_id
where 1=1
@if(!isEmpty(teacherOpenCourseScoreDashboardId)){
and t.teacher_open_course_score_dashboard_id =#teacherOpenCourseScoreDashboardId#
@ -142,6 +158,12 @@ queryByConditionQuery
@if(!isEmpty(teacherOpenCourseId)){
and t.teacher_open_course_id =#teacherOpenCourseId#
@}
@if(!isEmpty(studentOrName)){
and (s1.student_name like #'%'+studentOrName+'%'# or s1.student_sn like #'%'+studentOrName+'%'#)
@}
@if(!isEmpty(classId)){
and s2.class_id =#classId#
@}

Loading…
Cancel
Save