散料出入库扫描 站台,系统匹配料盒

This commit is contained in:
zgf committed 2023-11-22 11:22:01 +08:00
1 parent b833415dbf
commit b864a80e29
10 files changed
+140 -61

No files matched your search

@@ -214,11 +214,13 @@ namespace HHWMS.Web
.FirstOrDefault();
container = _unitwork.Find<Location>(x => x.Row == station.Row
&& x.Type == LocationTypeEnum.盘料库位
&& (x.Status == LocationStatus.有货 || x.Status == LocationStatus.空容器)
&& x.Length == Length
&& !x.IsStop)
.OrderByDescending(x => x.Length - x.Width)
&& x.Type == LocationTypeEnum.盘料库位
&& (x.Status == LocationStatus.有货 || x.Status == LocationStatus.空容器)
&& x.Length == Length
&& !x.IsStop)
.OrderByDescending(x => x.Length - x.Width)
.ThenBy(x => x.Layer)
.ThenByDescending(x => x.Line)
.FirstOrDefault();
}