From 8ff5567328dcf9fda3e63a0b63dbd60bfdf4e71a Mon Sep 17 00:00:00 2001 From: tq <1916474859@qq,com> Date: Tue, 24 Sep 2024 17:56:44 +0800 Subject: [PATCH] =?UTF-8?q?sql=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebStarter/db/换电订单新增计费字段.sql | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 '换电服务费';