称重bug
This commit is contained in:
@@ -125,6 +125,24 @@ namespace Tnb.ProductionMgr
|
|||||||
// Log.Information($"{device},{eqpDaq3.label_name}称重完成返回结果:{responseresult}");
|
// Log.Information($"{device},{eqpDaq3.label_name}称重完成返回结果:{responseresult}");
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
string equipStatus = await _redisData.GetHash(device, "1 启动2停止 3手动4急停");
|
||||||
|
Log.Information($"换箱机状态:{equipStatus}");
|
||||||
|
if (equipStatus != "1")
|
||||||
|
{
|
||||||
|
if (equipStatus.Trim() == "2")
|
||||||
|
{
|
||||||
|
throw Oops.Bah("换箱机状态为停止");
|
||||||
|
}
|
||||||
|
if (equipStatus.Trim() == "3")
|
||||||
|
{
|
||||||
|
throw Oops.Bah("换箱机状态为手动");
|
||||||
|
}
|
||||||
|
if (equipStatus.Trim() == "4")
|
||||||
|
{
|
||||||
|
throw Oops.Bah("换箱机状态为急停");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user