diff --git a/WebStarter/db/换电订单新增计费字段.sql b/WebStarter/db/换电订单新增计费字段.sql index 553b933..6d8f1ef 100644 --- a/WebStarter/db/换电订单新增计费字段.sql +++ b/WebStarter/db/换电订单新增计费字段.sql @@ -1,7 +1,4 @@ -ALTER TABLE swap_order -ADD COLUMN electricity_total_fee INT COMMENT '电费', -ADD COLUMN append_total_fee INT COMMENT '附加费', -ADD COLUMN total_fee INT COMMENT '总费用(所有的总费用)'; + ALTER TABLE swap_order_step @@ -26,4 +23,10 @@ ALTER TABLE bin_info ADD COLUMN nominal_energy DECIMAL(24,2) COMMENT '电池标称能量'; ALTER TABLE swap_order - ADD COLUMN service_total_fee INT COMMENT '换电服务费'; \ No newline at end of file + ADD COLUMN service_total_fee INT COMMENT '换电服务费'; + +ALTER TABLE swap_order + MODIFY COLUMN electricity_total_fee DECIMAL(24,2) COMMENT '电费', + MODIFY COLUMN append_total_fee DECIMAL(24,2) COMMENT '附加费', + MODIFY COLUMN total_fee DECIMAL(24,2) COMMENT '总费用(所有的总费用)', + MODIFY COLUMN service_total_fee DECIMAL(24,2) COMMENT '换电服务费';