Browse Source

feat:教师端课外训练搜索条件

Joburgess 4 years ago
parent
commit
96688e0eb7

+ 1 - 0
mec-biz/src/main/resources/config/mybatis/ClassGroupStudentMapperMapper.xml

@@ -671,5 +671,6 @@
             <if test="teacherId!=null">
                 AND cgtm.user_id_ = #{teacherId}
             </if>
+            AND cg.id_ IS NOT NULL
     </select>
 </mapper>

+ 1 - 0
mec-biz/src/main/resources/config/mybatis/StudentMapper.xml

@@ -641,5 +641,6 @@
             <foreach collection="studentIds" item="studentId" open="(" close=")" separator=",">
                 #{studentId}
             </foreach>
+            AND sub.id__ IS NOT NULL
     </select>
 </mapper>