|
|
|
@ -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#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|