select section.id, section.dept_id, section.road_id, dept.dept_name,road.road_name, section.start_stake_mark, section.end_stake_mark, section.section_name, section.road_code, section.mileage, section.create_time, section.update_time from dc_road_section as section left join sys_dept as dept on section.dept_id=dept.dept_id left join dc_road as road on section.road_id=road.id update dc_stake_mark set section_id=#{sectionId} where stake_mark=#{stakeMark} insert into dc_road_section id, dept_id, road_id, start_stake_mark, end_stake_mark, section_name, road_code, mileage, create_time, update_time, #{id}, #{deptId}, #{roadId}, #{startStakeMark}, #{endStakeMark}, #{sectionName}, #{roadCode}, #{mileage}, #{createTime}, #{updateTime}, update dc_road_section dept_id = #{deptId}, road_id = #{roadId}, start_stake_mark = #{startStakeMark}, end_stake_mark = #{endStakeMark}, section_name = #{sectionName}, road_code = #{roadCode}, mileage = #{mileage}, create_time = #{createTime}, update_time = #{updateTime}, where id = #{id} delete from dc_road_section where id = #{id} delete from dc_road_section where id in #{id}