|
@@ -478,7 +478,7 @@
|
|
SELECT * FROM student_extracurricular_exercises_situation_
|
|
SELECT * FROM student_extracurricular_exercises_situation_
|
|
<where>
|
|
<where>
|
|
<if test="monday != null and monday != ''">
|
|
<if test="monday != null and monday != ''">
|
|
- AND monday_=#{monday}
|
|
|
|
|
|
+ AND monday_ = #{monday}
|
|
</if>
|
|
</if>
|
|
<if test="teacherId!=null">
|
|
<if test="teacherId!=null">
|
|
AND teacher_id_=#{teacherId}
|
|
AND teacher_id_=#{teacherId}
|
|
@@ -728,4 +728,9 @@
|
|
WHERE csts.user_id_ = #{teacherId} AND cs.class_date_ BETWEEN #{firstDayOfMonth} AND #{lastDayOfMonth}
|
|
WHERE csts.user_id_ = #{teacherId} AND cs.class_date_ BETWEEN #{firstDayOfMonth} AND #{lastDayOfMonth}
|
|
AND FIND_IN_SET(cs.id_,se.course_ids_) AND se.serve_type_ = 'HOMEWORK'
|
|
AND FIND_IN_SET(cs.id_,se.course_ids_) AND se.serve_type_ = 'HOMEWORK'
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="countWaitCreateHomeworkNum" resultType="java.lang.Integer">
|
|
|
|
+ SELECT COUNT(id_) FROM student_extracurricular_exercises_situation_ WHERE teacher_id_ = #{teacherId}
|
|
|
|
+ AND ((serve_type_ = 'EXERCISE' AND expect_exercises_num_ > actual_exercises_num_)
|
|
|
|
+ OR (serve_type_ = 'HOMEWORK' AND expect_exercises_num_ > not_over_course_num_)) AND DATE_FORMAT(NOW(), '%Y-%m-%d') BETWEEN monday_ AND sunday_
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|