select teacher_id, name, gender, birthday, nation, photo, political, wechat, phone, address, identity, qqnumber, marriage, anotherDuties, level2units, serviceHours, jobNature, joinWorkHours, highestEducation, educated, study, lastestEducation, awardingInstitutions, email, college from sys_teacher_basicmessage
insert into sys_teacher_basicmessage
teacher_id,
name,
gender,
birthday,
nation,
photo,
political,
wechat,
phone,
address,
identity,
qqnumber,
marriage,
anotherDuties,
level2units,
serviceHours,
jobNature,
joinWorkHours,
highestEducation,
educated,
study,
lastestEducation,
awardingInstitutions,
email,
college,
#{teacherId},
#{name},
#{gender},
#{birthday},
#{nation},
#{photo},
#{political},
#{wechat},
#{phone},
#{address},
#{identity},
#{qqnumber},
#{marriage},
#{anotherDuties},
#{level2units},
#{serviceHours},
#{jobNature},
#{joinWorkHours},
#{highestEducation},
#{educated},
#{study},
#{lastestEducation},
#{awardingInstitutions},
#{email},
#{college},
update sys_teacher_basicmessage
name = #{name},
gender = #{gender},
birthday = #{birthday},
nation = #{nation},
photo = #{photo},
political = #{political},
wechat = #{wechat},
phone = #{phone},
address = #{address},
identity = #{identity},
qqnumber = #{qqnumber},
marriage = #{marriage},
anotherDuties = #{anotherDuties},
level2units = #{level2units},
serviceHours = #{serviceHours},
jobNature = #{jobNature},
joinWorkHours = #{joinWorkHours},
highestEducation = #{highestEducation},
educated = #{educated},
study = #{study},
lastestEducation = #{lastestEducation},
awardingInstitutions = #{awardingInstitutions},
email = #{email},
college = #{college},
where teacher_id = #{teacherId}
delete from sys_teacher_basicmessage where teacher_id = #{teacherId}
delete from sys_teacher_basicmessage where teacher_id in
#{teacherId}
delete from sys_teacher_takeclass where teacher_id in
#{teacherId}
delete from sys_teacher_takeclass where teacher_id = #{teacherId}
insert into sys_teacher_takeclass( takeclass_id, teacher_id, college, grade, classteam, number) values
( #{item.takeclassId}, #{item.teacherId}, #{item.college}, #{item.grade}, #{item.classteam}, #{item.number})