zouxuan 7 місяців тому
батько
коміт
b5b75b9491

+ 2 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseGroupMapper.xml

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