优化
This commit is contained in:
@@ -716,15 +716,17 @@ namespace Tnb.WarehouseMgr
|
||||
["Value"] = value,
|
||||
};
|
||||
string result = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand);
|
||||
|
||||
return result.Contains("Ok");
|
||||
|
||||
// 测试
|
||||
//string DevName = "东面提升机输送线";
|
||||
|
||||
//JObject valueJson = new JObject();
|
||||
//valueJson["Value"] = value;
|
||||
|
||||
//bool res = await _redisData.HSet(DevName, tag, valueJson.ToString());
|
||||
//return true;
|
||||
|
||||
return result.Contains("Ok");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -746,7 +748,8 @@ namespace Tnb.WarehouseMgr
|
||||
//获取所有未下发的预任务申请
|
||||
Logger.Information("【GenTaskExecute】 开始获取未下发的预任务...");
|
||||
|
||||
ISugarQueryable<WmsPretaskH> sugarQueryable = db.Queryable<WmsPretaskH>().InnerJoin<WmsCarryH>((a, b) => a.startlocation_id == b.location_id && a.carry_id == b.id)
|
||||
ISugarQueryable<WmsPretaskH> sugarQueryable = db.Queryable<WmsPretaskH>()
|
||||
.LeftJoin<WmsCarryH>((a, b) => a.startlocation_id == b.location_id && a.carry_id == b.id)
|
||||
.InnerJoin<WmsAreaH>((a, b, c) => a.area_id == c.id)
|
||||
.InnerJoin<BasLocation>((a, b, c, d) => a.endlocation_id == d.id && d.is_use == "0")
|
||||
.Where(a => a.status == WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID && !string.IsNullOrWhiteSpace(a.startlocation_id))
|
||||
@@ -2481,10 +2484,10 @@ namespace Tnb.WarehouseMgr
|
||||
carry_code = wmsCarryH.carry_code;
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(carry_id))
|
||||
{
|
||||
throw new AppFriendlyException("起点库位上没有载具", 500);
|
||||
}
|
||||
//if (string.IsNullOrEmpty(carry_id))
|
||||
//{
|
||||
// throw new AppFriendlyException("起点库位上没有载具", 500);
|
||||
//}
|
||||
|
||||
if (input.visualDevInput != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user