select t1.id, t1.name, t1.dept_id, t1.location, t1.remark, t1.pro, t1.city, t1.area, t1.status, t1.create_time, t1.update_time, d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status from dz_school t1 left join sys_dept d on t1.dept_id = d.dept_id insert into dz_school name, dept_id, location, remark, pro, city, area, status, create_time, update_time, #{name}, #{deptId}, #{location}, #{remark}, #{pro}, #{city}, #{area}, #{status}, #{createTime}, #{updateTime}, update dz_school name = #{name}, dept_id = #{deptId}, location = #{location}, remark = #{remark}, pro = #{pro}, city = #{city}, area = #{area}, status = #{status}, create_time = #{createTime}, update_time = #{updateTime}, where id = #{id} delete from dz_school where id = #{id} delete from dz_school where id in #{id}