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);
}
///