activity_formula_id
, activity_id, start_time, end_time, service_price, compute_formula, create_time,
create_by, update_time, update_by
delete
from xhpc_activity_formula
where activity_id = #{activityId}
delete
from xhpc_activity_formula
where activity_formula_id = #{activityFormulaId,jdbcType=BIGINT}
insert into xhpc_activity_formula (activity_id, start_time, end_time,
service_price, compute_formula, create_time, create_by,
update_time, update_by)
values (#{activityId,jdbcType=INTEGER}, #{startTime}, #{endTime},
#{servicePrice}, #{computeFormula,jdbcType=VARCHAR}, sysdate(), #{createBy,jdbcType=VARCHAR},
sysdate(), #{updateBy,jdbcType=VARCHAR})
update xhpc_activity_formula
set activity_id = #{activityId,jdbcType=INTEGER},
start_time = #{startTime},
end_time = #{endTime},
service_price = #{servicePrice},
compute_formula = #{computeFormula,jdbcType=VARCHAR},
update_time = sysdate(),
update_by = #{updateBy,jdbcType=VARCHAR}
where activity_formula_id = #{activityComputeId,jdbcType=BIGINT}