insert into t_pipe_out_plan_moth
id,
pipe_out_plan_id,
`month`,
plan_product,
#{id,jdbcType=VARCHAR},
#{pipeOutPlanId,jdbcType=VARCHAR},
#{month,jdbcType=INTEGER},
#{planProduct,jdbcType=INTEGER},
insert into t_pipe_out_plan
plan_out_id,
pro_id,
plan_year,
need_pipe_num,
create_time,
create_user,
update_time,
update_user,
#{planOutId},
#{proId},
#{planYear},
#{needPipeNum},
#{createTime},
#{createUser},
#{updateTime},
#{updateUser},
update t_pipe_out_plan
pro_id=#{proId},
plan_year=#{planYear},
need_pipe_num = #{needPipeNum},
create_time=#{createTime},
create_user=#{createUser},
update_time=#{updateTime},
update_user=#{updateUser},
where plan_out_id=#{planOutId}
update t_pipe_out_plan
SET is_use = 0
where plan_out_id=#{planOutId}
delete from t_pipe_out_plan_moth where pipe_out_plan_id=#{planOutId}