From 151e11aef5076a676a1f44d84ca2b0a7f2f3ae58 Mon Sep 17 00:00:00 2001
From: lch <1627445470@qq.com>
Date: Thu, 30 May 2024 17:27:36 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=9F=A5=E8=AF=A2=E5=B0=96?=
=?UTF-8?q?=E5=B3=B0=E5=B9=B3=E8=B0=B7=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../BasicConfig/BaseConfigController.cs | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/WebStarter/Controllers/BasicConfig/BaseConfigController.cs b/WebStarter/Controllers/BasicConfig/BaseConfigController.cs
index 4e6cb0f..ec66407 100644
--- a/WebStarter/Controllers/BasicConfig/BaseConfigController.cs
+++ b/WebStarter/Controllers/BasicConfig/BaseConfigController.cs
@@ -238,10 +238,23 @@ namespace WebStarter.Controllers.BasicConfig
/// 版本号
///
[HttpGet("GetStationElecPriceInfoList/{version}")]
- public async Task>> GetStationElecPriceInfoList(int version)
+ public async Task>> GetStationElecPriceInfoList(int version)
{
+ List elecPriceModelVersionDetailResps =
+ new List();
var data = await _elecPriceModelVersionDetailServices.QueryListByClauseAsync(u => u.Version == version);
- return Result>.Success(data);
+ foreach (var item in data)
+ {
+ elecPriceModelVersionDetailResps.Add(new ElecPriceModelVersionDetailResp()
+ {
+ Version = item.Version,
+ StartTime = new TimeSpan(item.StartHour,item.StartMinute,item.StartSecond),
+ EndTime = new TimeSpan(item.EndHour,item.EndMinute,item.EndSecond),
+ Price = item.Price,
+ Type = item.Price
+ });
+ }
+ return Result>.Success(elecPriceModelVersionDetailResps);
}
///