|
@@ -348,7 +348,7 @@
|
|
<where>
|
|
<where>
|
|
cs.status_ != '${@com.yonge.cooleshow.biz.dal.enums.CourseScheduleEnum@CANCEL}'
|
|
cs.status_ != '${@com.yonge.cooleshow.biz.dal.enums.CourseScheduleEnum@CANCEL}'
|
|
<if test="param.studentId != null">
|
|
<if test="param.studentId != null">
|
|
- and cssp.user_id_ = #{param.studentId} and #{param.studentId} = sa.student_id_
|
|
|
|
|
|
+ and cssp.user_id_ = #{param.studentId}
|
|
</if>
|
|
</if>
|
|
<if test="param.status != null">
|
|
<if test="param.status != null">
|
|
<choose>
|
|
<choose>
|
|
@@ -356,7 +356,7 @@
|
|
and sa.id_ is null AND cs.status_ IN ('ING','COMPLETE')
|
|
and sa.id_ is null AND cs.status_ IN ('ING','COMPLETE')
|
|
</when>
|
|
</when>
|
|
<when test="param.status == @com.yonge.cooleshow.biz.dal.enums.StudentCourseEnum@ATTENDCLASS">
|
|
<when test="param.status == @com.yonge.cooleshow.biz.dal.enums.StudentCourseEnum@ATTENDCLASS">
|
|
- and sa.id_ is not null
|
|
|
|
|
|
+ and sa.id_ is not null and #{param.studentId} = sa.student_id_
|
|
</when>
|
|
</when>
|
|
<when test="param.status == @com.yonge.cooleshow.biz.dal.enums.StudentCourseEnum@NOTSTART">
|
|
<when test="param.status == @com.yonge.cooleshow.biz.dal.enums.StudentCourseEnum@NOTSTART">
|
|
and cs.status_ = '${@ com.yonge.cooleshow.biz.dal.enums.CourseScheduleEnum@NOT_START}'
|
|
and cs.status_ = '${@ com.yonge.cooleshow.biz.dal.enums.CourseScheduleEnum@NOT_START}'
|