|
|
|
@ -23,9 +23,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
#endregion << 版 本 注 释 >>
|
|
|
|
#endregion << 版 本 注 释 >>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Dto.GetHoistStatus;
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Dto.HoistControl;
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Dto.HoistControl;
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Dto.HoistTaskExecutor;
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Dto.HoistTaskExecutor;
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Enum;
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Enum;
|
|
|
|
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Model.GetHoistStatus;
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Model.HoistControl;
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Model.HoistControl;
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Model.HoistTaskExecutor;
|
|
|
|
using Sln.Wcs.HoistApi.Domain.Model.HoistTaskExecutor;
|
|
|
|
using Sln.Wcs.HoistApi.Util;
|
|
|
|
using Sln.Wcs.HoistApi.Util;
|
|
|
|
@ -143,4 +145,51 @@ public class HoistApiService:IHoistApiService
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 获取提升机状态
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="hoistStatusDto"></param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
/// <exception cref="ArgumentException"></exception>
|
|
|
|
|
|
|
|
public GetHoistStatusResultDto GetHoistStatus(GetHoistStatusDto hoistStatusDto)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (hoistStatusDto == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
throw new ArgumentException($"输入参数为空。");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var data = new HoistSdk.Dto.GetHoistStatus.GetHoistStatusDto()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
hoistCode = hoistStatusDto.hoistCode,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var resp = this.hoistSdk.GetHoistStatus(data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool parseRes = this.codeUtil.parse(resp.code, resp.message, out HoistStatusEnum hoistStatusEnum);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new GetHoistStatusResultDto()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
code = hoistStatusEnum,
|
|
|
|
|
|
|
|
msg = resp.message,
|
|
|
|
|
|
|
|
data = new GetHoistStatusResultModel()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
code = resp.code,
|
|
|
|
|
|
|
|
message = resp.message,
|
|
|
|
|
|
|
|
hoistCode = resp.hoistCode,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return new GetHoistStatusResultDto()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
code = HoistStatusEnum.SDK调用异常,
|
|
|
|
|
|
|
|
msg = ex.Message,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|