insert into t_pipe_out
pipe_out_id,
pro_id,
car_id,
in_user_id,
str_time,
end_time,
notes,
is_use,
create_time,
create_user,
out_user_id,
gd_id,
pipe_out_number,
company_id,
#{pipeOutId,jdbcType=VARCHAR},
#{proId,jdbcType=VARCHAR},
#{carId,jdbcType=VARCHAR},
#{inUserId,jdbcType=VARCHAR},
#{strTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP},
#{notes,jdbcType=VARCHAR},
#{isUse,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{createUser,jdbcType=VARCHAR},
#{outUserId,jdbcType=VARCHAR},
#{gdId,jdbcType=VARCHAR},
#{pipeOutNumber},
#{companyId},
insert into t_pipe_out_pipe
id,
pipe_out_id,
pipe_id,
#{id,jdbcType=VARCHAR},
#{pipeOutId,jdbcType=VARCHAR},
#{pipeId,jdbcType=VARCHAR},
update t_pipe_info set
go_in=2,
out_repo_time=#{format1}
where pipe_id=#{pipeId}
update t_pipe_info set
go_in=1,
out_repo_time=null
where pipe_id=#{pipeId}
delete from t_pipe_out_pipe where pipe_out_id=#{pipeOutId}
update t_pipe_out set
is_use=2
where pipe_out_id=#{pipeOutId}
update t_pipe_out
pro_id = #{proId,jdbcType=VARCHAR},
car_id = #{carId,jdbcType=VARCHAR},
in_user_id = #{inUserId,jdbcType=VARCHAR},
str_time = #{strTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
notes = #{notes,jdbcType=VARCHAR},
is_use = #{isUse,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=VARCHAR},
out_user_id = #{outUserId,jdbcType=VARCHAR},
gd_id = #{gdId,jdbcType=VARCHAR},
where pipe_out_id = #{pipeOutId,jdbcType=VARCHAR}
insert into t_pipe_out_path
id,
pipe_out_id,
out_path,
#{id,jdbcType=VARCHAR},
#{pipeOutId,jdbcType=VARCHAR},
#{outPath,jdbcType=VARCHAR},
delete from t_pipe_out_path
where pipe_out_id=#{pipeOutId}
update t_repo_record_pipe set out_repo = 1 and out_repo_time = sysdate() where pipe_num = #{pipeNum}