id_
, course_group_id_, type_, status_,class_num_, teacher_id_, class_date_,
start_time_, end_time_, lock_, lock_time_, ex_student_num_,
created_by_, created_time_, updated_by_, updated_time_,service_provider_,room_id_,mute_all_,cancel_mute_flag_
insert into course_schedule(course_group_id_, type_, status_,class_num_, teacher_id_, class_date_, start_time_,
end_time_, lock_, lock_time_, ex_student_num_, created_by_, created_time_, updated_by_,
updated_time_,free_end_time_)
values
(#{entity.courseGroupId}, #{entity.type}, #{entity.status},#{entity.classNum}, #{entity.teacherId}, #{entity.classDate},
#{entity.startTime}, #{entity.endTime}, #{entity.lock}, #{entity.lockTime},
#{entity.exStudentNum}, #{entity.createdBy}, #{entity.createdTime}, #{entity.updatedBy},
#{entity.updatedTime},#{entity.freeEndTime})
Insert INTO course_group(teacher_id_,type_,name_,subject_id_,single_course_minutes_,course_num_,course_introduce_,
course_price_,status_,created_by_,mix_student_num_,course_start_time_,pre_student_num_)
VALUES (#{teacherId},#{type},#{courseGroupName},#{subjectId},#{singleCourseMinutes},#{courseNum},#{courseIntroduce},
#{coursePrice},#{status},#{studentId},#{mixStudentNum},#{courseStartTime},1)
UPDATE course_schedule SET lock_ = 0 WHERE id_ IN
#{item}
UPDATE course_schedule
SET class_date_=#{classDate},start_time_=#{startTime},end_time_=#{endTime}
WHERE id_ = #{courseId}
UPDATE course_schedule SET status_='ING' WHERE id_ IN(
#{item.id}
)
UPDATE course_schedule SET status_='COMPLETE' WHERE id_ IN(
#{item.courseId}
)
UPDATE course_schedule_teacher_salary
SET status_='COMPLETE',settlement_time_=NOW()
WHERE status_='NOT_START'
AND course_schedule_id_ IN
#{item}