if (v_compute_form = 1) then
current_fee := v_square * price; --本月费用
if (v_overdue_flag = 1) then
overdue_fine := previous_fee * 5 / 10000; --滞纳金
end if;
elsif (v_compute_form = 2) then
current_fee := record_count * price + v_plan_count1 * extra_price1 + v_plan_count2 * extra_price2 ;
end if;
oracle存储过程中if嵌套
最新推荐文章于 2023-05-30 23:32:08 发布
本文介绍了计费系统中两种不同的费用计算方式:一种基于面积乘以单价计算本月费用,并考虑了滞纳金;另一种则根据记录数量及额外单价计算当前费用。

1282

被折叠的 条评论
为什么被折叠?



