bug
This commit is contained in:
@@ -1062,7 +1062,7 @@ namespace Tnb.ProductionMgr
|
||||
throw new ArgumentNullException(nameof(input.TaskIds));
|
||||
}
|
||||
// if (input.Behavior.IsNullOrWhiteSpace())
|
||||
if (input.Behavior!=null && !input.Behavior.IsEmpty())
|
||||
if (input.Behavior==null || input.Behavior.IsEmpty())
|
||||
{
|
||||
throw new ArgumentException($"{nameof(input.Behavior)} not be null or empty");
|
||||
}
|
||||
|
||||
@@ -216,8 +216,8 @@ namespace Tnb.ProductionMgr
|
||||
public async Task<string> FixedPointDelivery()
|
||||
{
|
||||
string msg = "";
|
||||
bool? value = await _redisData.TryGetValueByKeyField<bool?>("hxjC", "DB100.132.3");
|
||||
bool valueFlag = _redisData.Get<bool>("hxjC_DB100.132.3_flag");
|
||||
bool? value = await _redisData.TryGetValueByKeyField<bool?>("hxjC", "A2允许入空箱");
|
||||
bool valueFlag = _redisData.Get<bool>("hxjC_A2允许入空箱_flag");
|
||||
if (value==true && !valueFlag)
|
||||
{
|
||||
bool? cs01 = await _redisData.TryGetValueByKeyField<bool?>("YTCS", "CallCtuEmptyIn_CS01");
|
||||
@@ -252,7 +252,7 @@ namespace Tnb.ProductionMgr
|
||||
{
|
||||
msg = "注塑定点配送成功";
|
||||
Log.Information("【FixedPointDelivery】注塑定点配送成功");
|
||||
_redisData.Set("hxjC_DB100.132.3_flag", true, TimeSpan.FromMinutes(20));
|
||||
_redisData.Set("hxjC_A2允许入空箱_flag", true, TimeSpan.FromMinutes(20));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user