select t1.departmentId, t1.collegeCode, t1.majorCount, t1.name, t1.website, t1.createTime, t1.updateTime,
t2.id, t2.code, t2.name nameMajor, t2.departmentId, t2.level, t2.levelText, t2.collegeCode, t2.createTime, t2.updateTime
from b_busi_wish_universities_department t1
left join b_busi_wish_universities_department_major t2 on t1.departmentId=t2.departmentId
insert into b_busi_wish_universities_department
departmentId,
collegeCode,
majorCount,
name,
website,
createTime,
updateTime,
#{departmentId},
#{collegeCode},
#{majorCount},
#{name},
#{website},
#{createTime},
#{updateTime},
update b_busi_wish_universities_department
collegeCode = #{collegeCode},
majorCount = #{majorCount},
name = #{name},
website = #{website},
createTime = #{createTime},
updateTime = #{updateTime},
where departmentId = #{departmentId}
delete from b_busi_wish_universities_department where departmentId = #{departmentId}
delete from b_busi_wish_universities_department where departmentId in
#{departmentId}