|
|
@ -270,6 +270,20 @@ public class SwapMonitorController : ControllerBase
|
|
|
|
[HttpGet("GetCarList")]
|
|
|
|
[HttpGet("GetCarList")]
|
|
|
|
public async Task<Result<List<TboxCarInfoModel>>> GetCarList()
|
|
|
|
public async Task<Result<List<TboxCarInfoModel>>> GetCarList()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
//兼容不能查车辆列表的,就获取当前换电车辆
|
|
|
|
|
|
|
|
if (!StaticStationInfo.TboxStateCarList)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (StationSoftMgr.SwappingStateMachine.BoxCarInfoModel == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return Result<List<TboxCarInfoModel>>.Success(new List<TboxCarInfoModel>());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Result<List<TboxCarInfoModel>>.Success(new()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
StationSoftMgr.SwappingStateMachine.BoxCarInfoModel
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var carInfoList = await TBoxApi.GetCarInfoList();
|
|
|
|
var carInfoList = await TBoxApi.GetCarInfoList();
|
|
|
|
if (carInfoList == null || carInfoList.Count <= 0)
|
|
|
|
if (carInfoList == null || carInfoList.Count <= 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|