|
@@ -839,7 +839,7 @@
|
|
|
LEFT JOIN course_schedule_student_payment cssp FORCE INDEX(group_type_) ON cssp.user_id_ = s.user_id_
|
|
|
WHERE cssp.group_type_ IN ('VIP','PRACTICE')
|
|
|
<if test="organId != null">
|
|
|
- su.organ_id_ = #{organId}
|
|
|
+ AND su.organ_id_ = #{organId}
|
|
|
</if>
|
|
|
LIMIT 1
|
|
|
</select>
|
|
@@ -871,7 +871,7 @@
|
|
|
LEFT JOIN course_schedule cs ON cs.id_ = cssp.course_schedule_id_
|
|
|
LEFT JOIN sys_user sut ON cs.actual_teacher_id_ = sut.id_
|
|
|
WHERE cssp.group_type_ IN ('VIP','PRACTICE')
|
|
|
- <if test="organId">
|
|
|
+ <if test="organId != null">
|
|
|
AND su.organ_id_ = #{organId}
|
|
|
</if>
|
|
|
GROUP BY s.user_id_
|