From 53f085da538a1c84a452bf408f07a3f9b2d5634f Mon Sep 17 00:00:00 2001
From: tq <1916474859@qq,com>
Date: Tue, 24 Sep 2024 10:23:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=A7=B0=E8=83=BD=E9=87=8F=E5=AD=97?=
=?UTF-8?q?=E6=AE=B5,=E6=96=B0=E5=A2=9Esql?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Entity/Api/Resp/SwapOrderBatteryResp.cs | 4 ++++
Entity/DbModel/Station/SwapOrderBattery.cs | 6 ++++++
WebStarter/db/换电订单新增计费字段.sql | 5 +++++
3 files changed, 15 insertions(+)
diff --git a/Entity/Api/Resp/SwapOrderBatteryResp.cs b/Entity/Api/Resp/SwapOrderBatteryResp.cs
index 55d1d22..6d88008 100644
--- a/Entity/Api/Resp/SwapOrderBatteryResp.cs
+++ b/Entity/Api/Resp/SwapOrderBatteryResp.cs
@@ -221,5 +221,9 @@ namespace Entity.Api.Resp
///
public string ElectricQuantity { get; set; }
+ ///
+ /// 标称能量
+ ///
+ public float? NominalEnergy { get; set; }
}
}
diff --git a/Entity/DbModel/Station/SwapOrderBattery.cs b/Entity/DbModel/Station/SwapOrderBattery.cs
index ee200ce..e3d824a 100644
--- a/Entity/DbModel/Station/SwapOrderBattery.cs
+++ b/Entity/DbModel/Station/SwapOrderBattery.cs
@@ -204,5 +204,11 @@ namespace Entity.DbModel.Station
[SugarColumn(ColumnName = "up_battery_bin_no")]
public int? UpBatteryBinNo { get; set; }
+ ///
+ /// 标称能量
+ ///
+ ///
+ [SugarColumn(ColumnName = "nominal_energy")]
+ public float? NominalEnergy { get; set; }
}
}
diff --git a/WebStarter/db/换电订单新增计费字段.sql b/WebStarter/db/换电订单新增计费字段.sql
index 93bc0b2..ce272ff 100644
--- a/WebStarter/db/换电订单新增计费字段.sql
+++ b/WebStarter/db/换电订单新增计费字段.sql
@@ -2,3 +2,8 @@ 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_battery
+ ADD COLUMN nominal_energy DECIMAL(24, 2) COMMENT '电池标称能量';