select t1.class_id, t1.school_id, t1.year, t1.name, t1.online, t1.status, t1.stats, t1.create_time, t1.update_time, t2.id, t2.name school_name, t2.dept_id, t2.pro, t2.city, t2.area from dz_classes t1 left join dz_school t2 on t1.school_id=t2.id insert into dz_classes school_id, year, name, online, status, stats, create_time, update_time, #{schoolId}, #{year}, #{name}, #{online}, #{status}, #{stats}, #{createTime}, #{updateTime}, update dz_classes school_id = #{schoolId}, year = #{year}, name = #{name}, online = #{online}, status = #{status}, stats = #{stats}, create_time = #{createTime}, update_time = #{updateTime}, where class_id = #{classId} delete from dz_classes where class_id = #{classId} delete from dz_classes where class_id in #{classId}