select io.id, io.algorithm_sub_id, io.`type`, io.`name`, io.`index`,io.matlab_io_path ,io.create_by, io.create_time, io.update_by, io.update_time, io.remark, sub.name as sub_name from t_algorithm_io_field as io left join t_algorithm_sub_type as sub on io.algorithm_sub_id = sub.id insert into t_algorithm_io_field algorithm_sub_id, `type`, `name`, `index`, matlab_io_path, create_by, create_time, update_by, update_time, remark, #{algorithmSubId}, #{type}, #{name}, #{index}, #{matlabIoPath}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update t_algorithm_io_field algorithm_sub_id = #{algorithmSubId}, `type` = #{type}, `name` = #{name}, `index` = #{index}, matlab_io_path = #{matlabIoPath}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} delete from t_algorithm_io_field where id = #{id} delete from t_algorithm_io_field where algorithm_sub_id = #{id} delete from t_algorithm_io_field where id in #{id}