|
@@ -58,17 +58,17 @@
|
|
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_,visit_flag_,normal_remind_,first_leave_)
|
|
|
|
|
|
+ update_time_,remark_,current_class_times_,sign_in_time_,sign_out_time_,current_schedule_id_,visit_flag_,normal_remind_)
|
|
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},#{visitFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
#{remark},#{currentClassTimes},#{signInTime},#{signOutTime},#{currentScheduleId},#{visitFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
- #{normalRemind},#{firstLeave,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
|
|
|
|
+ #{normalRemind})
|
|
</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_,
|
|
user_id_, teacher_id_, status_, create_time_,update_time_, remark_ ,current_class_times_,sign_in_time_,
|
|
- sign_out_time_,current_schedule_id_,visit_flag_,normal_remind_,first_leave_)
|
|
|
|
|
|
+ sign_out_time_,current_schedule_id_,visit_flag_,normal_remind_)
|
|
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},
|
|
@@ -77,7 +77,7 @@
|
|
#{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.visitFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
#{studentAttendance.signInTime},#{studentAttendance.signOutTime},#{studentAttendance.currentScheduleId},#{studentAttendance.visitFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
- #{studentAttendance.normalRemind},#{studentAttendance.firstLeave,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
|
|
|
|
+ #{studentAttendance.normalRemind})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -85,9 +85,6 @@
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.StudentAttendance">
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.StudentAttendance">
|
|
UPDATE student_attendance
|
|
UPDATE student_attendance
|
|
<set>
|
|
<set>
|
|
- <if test="firstLeave != null">
|
|
|
|
- first_leave_ = #{firstLeave,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
|
- </if>
|
|
|
|
<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>
|