|
@@ -56,15 +56,15 @@
|
|
|
keyColumn="id" keyProperty="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_)
|
|
|
+ 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},
|
|
|
#{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 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_,
|
|
|
- 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
|
|
|
<foreach collection="list" item="studentAttendance" separator=",">
|
|
|
(#{studentAttendance.groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
@@ -72,7 +72,7 @@
|
|
|
#{studentAttendance.userId},#{studentAttendance.teacherId},
|
|
|
#{studentAttendance.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},now(),#{studentAttendance.updateTime},
|
|
|
#{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>
|
|
|
</insert>
|
|
|
|
|
@@ -83,6 +83,9 @@
|
|
|
<if test="status != null">
|
|
|
status_ = #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
+ <if test="visitFlag != null">
|
|
|
+ visit_flag_ = #{visitFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
<if test="currentScheduleId != null">
|
|
|
current_schedule_id_ = #{currentScheduleId},
|
|
|
</if>
|
|
@@ -125,6 +128,9 @@
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
|
|
update student_attendance
|
|
|
<set>
|
|
|
+ <if test="item.visitFlag != null">
|
|
|
+ visit_flag_ = #{item.visitFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
<if test="item.status != null">
|
|
|
status_ = #{item.status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|