| 
														
															@@ -56,15 +56,15 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             keyColumn="id" keyProperty="id"> 
														 | 
														
														 | 
														
															             keyColumn="id" keyProperty="id"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         INSERT INTO student_attendance 
														 | 
														
														 | 
														
															         INSERT INTO student_attendance 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         (group_type_,music_group_id_,class_group_id_,course_schedule_id_,user_id_,teacher_id_,status_,create_time_, 
														 | 
														
														 | 
														
															         (group_type_,music_group_id_,class_group_id_,course_schedule_id_,user_id_,teacher_id_,status_,create_time_, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        update_time_,remark_,current_class_times_,sign_in_time_,sign_out_time_,current_schedule_id_) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        update_time_,remark_,current_class_times_,sign_in_time_,sign_out_time_,current_schedule_id_,visit_flag_) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         VALUES(#{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{musicGroupId},#{classGroupId}, 
														 | 
														
														 | 
														
															         VALUES(#{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{musicGroupId},#{classGroupId}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         #{courseScheduleId},#{userId},#{teacherId},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},now(),now(), 
														 | 
														
														 | 
														
															         #{courseScheduleId},#{userId},#{teacherId},#{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},now(),now(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        #{remark},#{currentClassTimes},#{signInTime},#{signOutTime},#{currentScheduleId}) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        #{remark},#{currentClassTimes},#{signInTime},#{signOutTime},#{currentScheduleId},#{visitFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     </insert> 
														 | 
														
														 | 
														
															     </insert> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <insert id="addStudentAttendances" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id_"> 
														 | 
														
														 | 
														
															     <insert id="addStudentAttendances" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id_"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       INSERT INTO student_attendance (group_type_, music_group_id_, class_group_id_, course_schedule_id_, 
														 | 
														
														 | 
														
															       INSERT INTO student_attendance (group_type_, music_group_id_, class_group_id_, course_schedule_id_, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      user_id_, teacher_id_, status_, create_time_,update_time_, remark_ ,current_class_times_,sign_in_time_,sign_out_time_,current_schedule_id_) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      user_id_, teacher_id_, status_, create_time_,update_time_, remark_ ,current_class_times_,sign_in_time_,sign_out_time_,current_schedule_id_,visit_flag_) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       VALUES 
														 | 
														
														 | 
														
															       VALUES 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	  <foreach collection="list" item="studentAttendance" separator=","> 
														 | 
														
														 | 
														
															 	  <foreach collection="list" item="studentAttendance" separator=","> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           (#{studentAttendance.groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, 
														 | 
														
														 | 
														
															           (#{studentAttendance.groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -72,7 +72,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           #{studentAttendance.userId},#{studentAttendance.teacherId}, 
														 | 
														
														 | 
														
															           #{studentAttendance.userId},#{studentAttendance.teacherId}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           #{studentAttendance.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},now(),#{studentAttendance.updateTime}, 
														 | 
														
														 | 
														
															           #{studentAttendance.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},now(),#{studentAttendance.updateTime}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           #{studentAttendance.remark},#{studentAttendance.currentClassTimes}, 
														 | 
														
														 | 
														
															           #{studentAttendance.remark},#{studentAttendance.currentClassTimes}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-          #{studentAttendance.signInTime},#{studentAttendance.signOutTime},#{studentAttendance.currentScheduleId}) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          #{studentAttendance.signInTime},#{studentAttendance.signOutTime},#{studentAttendance.currentScheduleId},#{studentAttendance.visitFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       </foreach> 
														 | 
														
														 | 
														
															       </foreach> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     </insert> 
														 | 
														
														 | 
														
															     </insert> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -83,6 +83,9 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <if test="status != null"> 
														 | 
														
														 | 
														
															             <if test="status != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, 
														 | 
														
														 | 
														
															                 status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </if> 
														 | 
														
														 | 
														
															             </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <if test="visitFlag != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                visit_flag_ = #{visitFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <if test="currentScheduleId != null"> 
														 | 
														
														 | 
														
															             <if test="currentScheduleId != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 current_schedule_id_ = #{currentScheduleId}, 
														 | 
														
														 | 
														
															                 current_schedule_id_ = #{currentScheduleId}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </if> 
														 | 
														
														 | 
														
															             </if> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -125,6 +128,9 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     	<foreach collection="list" item="item" index="index" open="" close="" separator=";"> 
														 | 
														
														 | 
														
															     	<foreach collection="list" item="item" index="index" open="" close="" separator=";"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	        update student_attendance 
														 | 
														
														 | 
														
															 	        update student_attendance 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	        <set> 
														 | 
														
														 | 
														
															 	        <set> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	            <if test="item.visitFlag != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	                visit_flag_ = #{item.visitFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+	            </if> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	            <if test="item.status != null"> 
														 | 
														
														 | 
														
															 	            <if test="item.status != null"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	                status_ = #{item.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, 
														 | 
														
														 | 
														
															 	                status_ = #{item.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	            </if> 
														 | 
														
														 | 
														
															 	            </if> 
														 |