|
@@ -811,49 +811,49 @@
|
|
|
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
|
|
- UPDATE course_schedule
|
|
|
- <set>
|
|
|
- <if test="item.classDate != null">
|
|
|
- class_date_ = #{item.classDate},
|
|
|
- </if>
|
|
|
- <if test="item.endClassTime != null">
|
|
|
- end_class_time_ = #{item.endClassTime},
|
|
|
- </if>
|
|
|
- <if test="item.status != null">
|
|
|
- status_ = #{item.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
- </if>
|
|
|
- <if test="item.type != null">
|
|
|
- type_ = #{item.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
- </if>
|
|
|
- <if test="item.actualTeacherId != null">
|
|
|
- actual_teacher_id_ = #{item.actualTeacherId},
|
|
|
- </if>
|
|
|
- <if test="item.subsidy != null">
|
|
|
- subsidy_ = #{item.subsidy},
|
|
|
- </if>
|
|
|
- <if test="item.classGroupId != null">
|
|
|
- class_group_id_ = #{item.classGroupId},
|
|
|
- </if>
|
|
|
- <if test="item.startClassTime != null">
|
|
|
- start_class_time_ = #{item.startClassTime},
|
|
|
- </if>
|
|
|
- <if test="item.teacherId != null">
|
|
|
- teacher_id_ = #{item.teacherId},
|
|
|
- </if>
|
|
|
- <if test="item.updateTime != null">
|
|
|
- update_time_ = #{item.updateTime},
|
|
|
- </if>
|
|
|
- <if test="item.studentNum != null">
|
|
|
- student_num_ = #{item.studentNum},
|
|
|
- </if>
|
|
|
- <if test="item.leaveStudentNum != null">
|
|
|
- leave_student_num_ = #{item.leaveStudentNum},
|
|
|
- </if>
|
|
|
- <if test="item.schoolId != null">
|
|
|
- school_id_ = #{item.choolId},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- WHERE id_ = #{item.id}
|
|
|
+ UPDATE course_schedule
|
|
|
+ <set>
|
|
|
+ <if test="item.classDate != null">
|
|
|
+ class_date_ = #{item.classDate},
|
|
|
+ </if>
|
|
|
+ <if test="item.endClassTime != null">
|
|
|
+ end_class_time_ = #{item.endClassTime},
|
|
|
+ </if>
|
|
|
+ <if test="item.status != null">
|
|
|
+ status_ = #{item.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="item.type != null">
|
|
|
+ type_ = #{item.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="item.actualTeacherId != null">
|
|
|
+ actual_teacher_id_ = #{item.actualTeacherId},
|
|
|
+ </if>
|
|
|
+ <if test="item.subsidy != null">
|
|
|
+ subsidy_ = #{item.subsidy},
|
|
|
+ </if>
|
|
|
+ <if test="item.classGroupId != null">
|
|
|
+ class_group_id_ = #{item.classGroupId},
|
|
|
+ </if>
|
|
|
+ <if test="item.startClassTime != null">
|
|
|
+ start_class_time_ = #{item.startClassTime},
|
|
|
+ </if>
|
|
|
+ <if test="item.teacherId != null">
|
|
|
+ teacher_id_ = #{item.teacherId},
|
|
|
+ </if>
|
|
|
+ <if test="item.updateTime != null">
|
|
|
+ update_time_ = #{item.updateTime},
|
|
|
+ </if>
|
|
|
+ <if test="item.studentNum != null">
|
|
|
+ student_num_ = #{item.studentNum},
|
|
|
+ </if>
|
|
|
+ <if test="item.leaveStudentNum != null">
|
|
|
+ leave_student_num_ = #{item.leaveStudentNum},
|
|
|
+ </if>
|
|
|
+ <if test="item.schoolId != null">
|
|
|
+ school_id_ = #{item.choolId},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ WHERE id_ = #{item.id}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
<update id="updateByMusicGroupId">
|
|
@@ -861,6 +861,11 @@
|
|
|
WHERE cs.class_group_id_ IN (SELECT cg.id_ FROM class_group cg WHERE cg.music_group_id_ = #{musicGroupId})
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateCourscheduleStatus">
|
|
|
+ UPDATE course_schedule SET status_ = #{status}
|
|
|
+ WHERE id_=#{courseScheduleId}
|
|
|
+ </update>
|
|
|
+
|
|
|
<select id="queryNoSignInListByBeforeMinutes" resultMap="CourseSchedule">
|
|
|
SELECT cs.* FROM course_schedule cs left join teacher_attendance ta on ta.course_schedule_id_ = cs.id_ WHERE ta.sign_in_time_ is null and SUBTIME(start_class_time_, CONCAT(#{minutes},'00')) < CURRENT_TIME()
|
|
|
</select>
|