关于换电任务的更新

zw
rszn 5 months ago
parent 4fb7cbfbf4
commit dd5ec66a50

@ -62,6 +62,7 @@ public class BatteryMoveTask : ITask
{ {
return; return;
} }
var binInfo = queryListByClause[0]; var binInfo = queryListByClause[0];
Result<bool> success = Result<bool> success =

@ -119,9 +119,24 @@ public class ChargeMonitorController
[HttpGet("BatteryRelocation")] [HttpGet("BatteryRelocation")]
public async Task<Result<bool>> BatteryRelocation(ushort removeBinNo, ushort putBinNo) 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>
/// 移仓时下拉项 仓位电池状态 /// 移仓时下拉项 仓位电池状态
/// </summary> /// </summary>

Loading…
Cancel
Save