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 '电池标称能量';