t.id as id,
t.pipe_plan_id as pipePlanId,
t.month as month,
t.plan_product as planProduct
t.pipe_plan_id = #{pipePlanId} AND
t.month = #{month} AND
t.plan_product = #{planProduct} AND
insert into t_pipe_plan_month
id,
pipe_plan_id,
month,
plan_product,
#{id},
#{pipePlanId},
#{month},
#{planProduct},
update t_pipe_plan_month
pipe_plan_id=#{pipePlanId},
month=#{month},
plan_product=#{planProduct},
where id=#{id}
update t_pipe_plan_month
SET is_use = 0
where id=#{id}
delete from t_pipe_plan_month
where id=#{id}
delete from t_pipe_plan_month where pipe_plan_id=#{pipePlanId}