容器出库

库位禁用
演示逻辑修改 task station=1的出库任务需要自动下发入库任务和AGv任务
This commit is contained in:
zhougf committed 2024-05-29 17:09:03 +08:00
1 parent a6168a75bf
commit a3e91357ee
10 files changed
+166 -33

No files matched your search

@@ -61,9 +61,10 @@ namespace HHWMS.Web.Controllers
//查找仓位
var location = _unitWork.Find<Location>(u => u.Status == LocationStatus.空仓位
&& u.Type == container.Type)
.OrderBy(x => x.Layer)
.ThenBy(x => x.Line)
&& u.Type == container.Type
&& !u.IsStop)
.OrderByDescending(x => x.Layer)
.ThenByDescending(x => x.Line)
.FirstOrDefault();
// 判断location是否为空
@@ -130,11 +131,12 @@ namespace HHWMS.Web.Controllers
}
catch (Exception ex)
{
task.ErrorMsg = ex.Message;
}
task.UpdateTime = DateTime.Now;
task.UpdateBy = "WMS";
_unitWork.Update(task);
if (agv)
{
// 调用AGV接口