|
|
@@ -249,17 +249,14 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="teacherClazz" resultType="int">
|
|
|
- select count(*) from sys_clazz left join sys_teacher_clazz on sys_clazz.clazz_id=sys_teacher_clazz.clazz_id
|
|
|
+ select count(*) from sys_teacher_clazz
|
|
|
<where>
|
|
|
<if test="subject_name != null">
|
|
|
- sys_teacher_clazz.subject_name=#{subject_name}
|
|
|
+ subject_name=#{subject_name}
|
|
|
</if>
|
|
|
- <if test="clazz_id != null">
|
|
|
- and sys_teacher_clazz.clazz_id=#{clazz_id}
|
|
|
+ <if test="teacher_id != null">
|
|
|
+ and teacher_id=#{teacher_id}
|
|
|
</if>
|
|
|
- <if test="school_id != null">
|
|
|
- and sys_clazz.school_id=#{school_id}
|
|
|
- </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|