|
|
|
@ -119,9 +119,24 @@ public class ChargeMonitorController
|
|
|
|
|
[HttpGet("BatteryRelocation")]
|
|
|
|
|
public async Task<Result<bool>> BatteryRelocation(ushort removeBinNo, ushort putBinNo)
|
|
|
|
|
{
|
|
|
|
|
return _monitorService.BatteryRelocation(removeBinNo, putBinNo,1);
|
|
|
|
|
Result<bool> res = Result<bool>.Fail();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
res = _monitorService.BatteryRelocation(removeBinNo, putBinNo, 1);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
if (PlcMgr.PlcClient?.ReadTaskNo() == 2)
|
|
|
|
|
{
|
|
|
|
|
PlcMgr.PlcClient?.ResetTaskNo();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Result<bool>.Fail();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return res; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 移仓时下拉项 仓位电池状态
|
|
|
|
|
/// </summary>
|
|
|
|
|