|
@@ -160,7 +160,7 @@
|
|
AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%'))
|
|
AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%'))
|
|
</if>
|
|
</if>
|
|
<if test="organIdList != null">
|
|
<if test="organIdList != null">
|
|
- AND FIND_IN_SET(t.organ_id_,#{organIdList})
|
|
|
|
|
|
+ AND FIND_IN_SET(stu.organ_id_,#{organIdList})
|
|
</if>
|
|
</if>
|
|
<if test="existVipCourse!=null and existVipCourse==1">
|
|
<if test="existVipCourse!=null and existVipCourse==1">
|
|
AND EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='VIP' AND class_date_ BETWEEN #{monday} AND #{sunday})
|
|
AND EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='VIP' AND class_date_ BETWEEN #{monday} AND #{sunday})
|
|
@@ -214,7 +214,7 @@
|
|
FROM
|
|
FROM
|
|
student_extracurricular_exercises_situation_ sees
|
|
student_extracurricular_exercises_situation_ sees
|
|
LEFT JOIN sys_user stu ON stu.id_=sees.student_id_
|
|
LEFT JOIN sys_user stu ON stu.id_=sees.student_id_
|
|
- LEFT JOIN teacher t ON t.id_=sees.teacher_id_
|
|
|
|
|
|
+ LEFT JOIN teacher t ON t.id_=sees.teacher_id_
|
|
LEFT JOIN sys_user tea ON tea.id_=sees.teacher_id_
|
|
LEFT JOIN sys_user tea ON tea.id_=sees.teacher_id_
|
|
LEFT JOIN organization o ON stu.organ_id_=o.id_
|
|
LEFT JOIN organization o ON stu.organ_id_=o.id_
|
|
WHERE
|
|
WHERE
|
|
@@ -227,7 +227,7 @@
|
|
AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%'))
|
|
AND (stu.id_=#{search} OR stu.username_ LIKE CONCAT('%', #{search}, '%'))
|
|
</if>
|
|
</if>
|
|
<if test="organIdList != null">
|
|
<if test="organIdList != null">
|
|
- AND FIND_IN_SET(t.organ_id_, #{organIdList})
|
|
|
|
|
|
+ AND FIND_IN_SET(stu.organ_id_, #{organIdList})
|
|
</if>
|
|
</if>
|
|
<if test="existVipCourse!=null and existVipCourse==1">
|
|
<if test="existVipCourse!=null and existVipCourse==1">
|
|
AND EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='VIP' AND class_date_ BETWEEN #{monday} AND #{sunday})
|
|
AND EXISTS (SELECT cssp.id_ FROM course_schedule_student_payment cssp LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ WHERE cssp.user_id_=sees.student_id_ AND cssp.group_type_='VIP' AND class_date_ BETWEEN #{monday} AND #{sunday})
|