|  | @@ -169,9 +169,6 @@
 | 
	
		
			
				|  |  |              <if test="teacherId != null">
 | 
	
		
			
				|  |  |                  teacher_id_ = #{teacherId},
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  | -            <if test="updateTime != null">
 | 
	
		
			
				|  |  | -                update_time_ = NOW(),
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  |              <if test="studentNum != null">
 | 
	
		
			
				|  |  |                  student_num_ = #{studentNum},
 | 
	
		
			
				|  |  |              </if>
 | 
	
	
		
			
				|  | @@ -181,6 +178,7 @@
 | 
	
		
			
				|  |  |              <if test="schoolId != null">
 | 
	
		
			
				|  |  |                  schoole_id_ = #{schoolId},
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  | +            update_time_ = NOW()
 | 
	
		
			
				|  |  |          </set>
 | 
	
		
			
				|  |  |          WHERE id_ = #{id}
 | 
	
		
			
				|  |  |      </update>
 | 
	
	
		
			
				|  | @@ -195,11 +193,11 @@
 | 
	
		
			
				|  |  |      </delete>
 | 
	
		
			
				|  |  |      
 | 
	
		
			
				|  |  |      <update id="logicDeleteCourseSchedulesByMusicGroupID">
 | 
	
		
			
				|  |  | -    	update course_schedule set del_flag_ = '1' WHERE music_group_id_=#{musicGroupID} AND group_type_='MUSIC' and status_ = 'NOT_START'
 | 
	
		
			
				|  |  | +    	update course_schedule set del_flag_ = '1',update_time_ = NOW() WHERE music_group_id_=#{musicGroupID} AND group_type_='MUSIC' and status_ = 'NOT_START'
 | 
	
		
			
				|  |  |      </update>
 | 
	
		
			
				|  |  |      
 | 
	
		
			
				|  |  |      <update id="resumeCourseScheduleByMusicGroupId">
 | 
	
		
			
				|  |  | -    	update course_schedule set del_flag_ = '0' WHERE music_group_id_=#{musicGroupID} AND group_type_='MUSIC' and status_ = 'NOT_START' and del_flag_ = '1'
 | 
	
		
			
				|  |  | +    	update course_schedule set del_flag_ = '0',update_time_ = NOW() WHERE music_group_id_=#{musicGroupID} AND group_type_='MUSIC' and status_ = 'NOT_START' and del_flag_ = '1'
 | 
	
		
			
				|  |  |      </update>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <delete id="batchDeleteCourseSchedules">
 | 
	
	
		
			
				|  | @@ -932,9 +930,6 @@
 | 
	
		
			
				|  |  |                  <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>
 | 
	
	
		
			
				|  | @@ -944,25 +939,28 @@
 | 
	
		
			
				|  |  |                  <if test="item.schoolId != null">
 | 
	
		
			
				|  |  |                      schoole_id_ = #{item.schoolId},
 | 
	
		
			
				|  |  |                  </if>
 | 
	
		
			
				|  |  | +                update_time_ = NOW()
 | 
	
		
			
				|  |  |              </set>
 | 
	
		
			
				|  |  |              WHERE id_ = #{item.id}
 | 
	
		
			
				|  |  |          </foreach>
 | 
	
		
			
				|  |  |      </update>
 | 
	
		
			
				|  |  |      <update id="updateByMusicGroupId">
 | 
	
		
			
				|  |  | -        UPDATE course_schedule cs SET cs.schoole_id_ = #{schoolId}
 | 
	
		
			
				|  |  | +        UPDATE course_schedule cs SET cs.schoole_id_ = #{schoolId},update_time_ = NOW()
 | 
	
		
			
				|  |  |          WHERE cs.class_group_id_ IN (SELECT cg.id_ FROM class_group cg WHERE cg.music_group_id_ = #{musicGroupId} AND cg.group_type_ = 'MUSIC' )
 | 
	
		
			
				|  |  |      </update>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <update id="updateCourscheduleStatus">
 | 
	
		
			
				|  |  | -        UPDATE course_schedule SET status_ = #{status}
 | 
	
		
			
				|  |  | +        UPDATE course_schedule SET status_ = #{status},update_time_ = NOW()
 | 
	
		
			
				|  |  |          WHERE id_=#{courseScheduleId}
 | 
	
		
			
				|  |  |      </update>
 | 
	
		
			
				|  |  |      <update id="updateCourseScheduleSchool">
 | 
	
		
			
				|  |  | -        UPDATE course_schedule cs SET cs.schoole_id_ = #{schoolId} WHERE cs.music_group_id_ = #{musicGroupId}
 | 
	
		
			
				|  |  | +        UPDATE course_schedule cs SET cs.schoole_id_ = #{schoolId},update_time_ = NOW()
 | 
	
		
			
				|  |  | +        WHERE cs.music_group_id_ = #{musicGroupId}
 | 
	
		
			
				|  |  |          AND cs.group_type_ = 'MUSIC' AND NOW() < CONCAT(cs.class_date_," ",cs.start_class_time_);
 | 
	
		
			
				|  |  |      </update>
 | 
	
		
			
				|  |  |      <update id="updateCourseSchoolByGroup">
 | 
	
		
			
				|  |  | -        UPDATE course_schedule cs SET cs.schoole_id_ = #{schoolId} WHERE cs.music_group_id_ = #{groupType}
 | 
	
		
			
				|  |  | +        UPDATE course_schedule cs SET cs.schoole_id_ = #{schoolId},,update_time_ = NOW()
 | 
	
		
			
				|  |  | +        WHERE cs.music_group_id_ = #{groupType}
 | 
	
		
			
				|  |  |          AND cs.group_type_ = #{groupType} AND NOW() < CONCAT(cs.class_date_," ",cs.start_class_time_);
 | 
	
		
			
				|  |  |      </update>
 | 
	
		
			
				|  |  |  
 |