t.plan_id as planId, t.pro_id as proId, t.plan_year as planYear, t.plan_product as planProduct, t.size as size, t.create_time as createTime, t.create_user as createUser, t.update_time as updateTime, t.update_user as updateUser t.is_use = 1 AND t.pro_id = #{proId} AND t.plan_year = #{planYear} AND t.plan_product = #{planProduct} AND t.size = #{size} AND t.create_time = #{createTime} AND t.create_user = #{createUser} AND t.update_time = #{updateTime} AND t.update_user = #{updateUser} AND insert into t_pipe_plan plan_id, pro_id, plan_year, plan_product, size, create_time, create_user, update_time, update_user, #{planId}, #{proId}, #{planYear}, #{planProduct}, #{size}, #{createTime}, #{createUser}, #{updateTime}, #{updateUser}, update t_pipe_plan pro_id=#{proId}, plan_year=#{planYear}, plan_product=#{planProduct}, size=#{size}, create_time=#{createTime}, create_user=#{createUser}, update_time=#{updateTime}, update_user=#{updateUser}, where plan_id=#{planId} update t_pipe_plan SET is_use = 0 where plan_id=#{planId} delete from t_pipe_plan where plan_id=#{planId}