select dtpc.id, dtpc.project_id, sp.projectName, dtpc.device_sn, dtpc.device_name, dtpc.device_source, dtpc.tower_id, dtpc.tower_type, dtpc.coordinate_x, dtpc.coordinate_y, dtpc.front_brachium, dtpc.after_brachium, dtpc.tower_body_height, dtpc.tower_cap_height, dtpc.tower_section_height, dtpc.online, dtpc.dri_name, dtpc.dri_phone, dtpc.saf_name, dtpc.saf_phone, dtpc.is_del, dtpc.create_by, dtpc.create_time, dtpc.update_by, dtpc.update_time, dtpc.remark from dev_tower_project_config dtpc left join sur_project sp on sp.id = dtpc.project_id insert into dev_tower_project_config project_id, dept_id, device_sn, device_name, device_source, tower_type, tower_id, coordinate_x, coordinate_y, front_brachium, after_brachium, tower_body_height, tower_cap_height, tower_section_height, online, dri_name, dri_phone, saf_name, saf_phone, is_del, create_by, create_time, update_by, update_time, remark, #{projectId}, #{deptId}, #{deviceSn}, #{deviceName}, #{deviceSource}, #{towerType}, #{towerId}, #{coordinateX}, #{coordinateY}, #{frontBrachium}, #{afterBrachium}, #{towerBodyHeight}, #{towerCapHeight}, #{towerSectionHeight}, #{online}, #{driName}, #{driPhone}, #{safName}, #{safPhone}, #{isDel}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update dev_tower_project_config project_id = #{projectId}, dept_id = #{deptId}, device_sn = #{deviceSn}, device_name = #{deviceName}, device_source = #{deviceSource}, tower_type = #{towerType}, tower_id = #{towerId}, coordinate_x = #{coordinateX}, coordinate_y = #{coordinateY}, front_brachium = #{frontBrachium}, after_brachium = #{afterBrachium}, tower_body_height = #{towerBodyHeight}, tower_cap_height = #{towerCapHeight}, tower_section_height = #{towerSectionHeight}, online = #{online}, dri_name = #{driName}, dri_phone = #{driPhone}, saf_name = #{safName}, saf_phone = #{safPhone}, is_del = #{isDel}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} update dev_tower_project_config set is_del=1 where id = #{id} update dev_tower_project_config set is_del=1 where id in #{id}