|
|
@ -238,10 +238,23 @@ namespace WebStarter.Controllers.BasicConfig
|
|
|
|
/// <param name="version">版本号</param>
|
|
|
|
/// <param name="version">版本号</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet("GetStationElecPriceInfoList/{version}")]
|
|
|
|
[HttpGet("GetStationElecPriceInfoList/{version}")]
|
|
|
|
public async Task<Result<List<ElecPriceModelVersionDetail>>> GetStationElecPriceInfoList(int version)
|
|
|
|
public async Task<Result<List<ElecPriceModelVersionDetailResp>>> GetStationElecPriceInfoList(int version)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
List<ElecPriceModelVersionDetailResp> elecPriceModelVersionDetailResps =
|
|
|
|
|
|
|
|
new List<ElecPriceModelVersionDetailResp>();
|
|
|
|
var data = await _elecPriceModelVersionDetailServices.QueryListByClauseAsync(u => u.Version == version);
|
|
|
|
var data = await _elecPriceModelVersionDetailServices.QueryListByClauseAsync(u => u.Version == version);
|
|
|
|
return Result<List<ElecPriceModelVersionDetail>>.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<List<ElecPriceModelVersionDetailResp>>.Success(elecPriceModelVersionDetailResps);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|