t_class_id, school_id, grade, teacher_name, single_or_double, week, course_number,
class_id, course_name, create_time ,team
insert into sz_sch_teacher_course (school_id, grade,
teacher_name, single_or_double, week,
course_number, class_id, course_name,
create_time,team)
values
(#{emp.schoolId,jdbcType=INTEGER}, #{emp.grade,jdbcType=VARCHAR},
#{emp.teacherName,jdbcType=VARCHAR}, #{emp.singleOrDouble,jdbcType=INTEGER}, #{emp.week,jdbcType=INTEGER},
#{emp.courseNumber,jdbcType=INTEGER}, #{emp.classId,jdbcType=VARCHAR}, #{emp.courseName,jdbcType=VARCHAR},
#{emp.createTime,jdbcType=TIMESTAMP},#{emp.team,jdbcType=VARCHAR})
update sz_sch_teacher_course
set course_name = #{courseName,jdbcType=VARCHAR} , class_id = #{classId,jdbcType=VARCHAR} , grade=#{grade}
where team =#{team} and school_id = #{schoolId,jdbcType=INTEGER}
and teacher_name = #{teacherName,jdbcType=VARCHAR}
and week = #{week,jdbcType=INTEGER}
and course_number = #{courseNumber,jdbcType=INTEGER}
and single_or_double = #{singleOrDouble,jdbcType=INTEGER}
update sz_sch_teacher_course
set course_name = null , class_id = null , grade= null
where team =#{team} and school_id = #{schoolId,jdbcType=INTEGER}
and teacher_name = #{teacherName} and course_name = #{courseName}
update sz_sch_teacher_course
set school_id = #{schoolId,jdbcType=INTEGER},
grade = #{grade,jdbcType=VARCHAR},
teacher_name = #{teacherName,jdbcType=VARCHAR},
single_or_double = #{singleOrDouble,jdbcType=INTEGER},
week = #{week,jdbcType=INTEGER},
course_number = #{courseNumber,jdbcType=INTEGER},
class_id = #{classId,jdbcType=VARCHAR},
course_name = #{courseName,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}
where t_class_id = #{tClassId,jdbcType=INTEGER}
delete from sz_sch_teacher_course where school_id = #{schoolId} and team = #{team}