获取agv 起点和终点,入参修改

This commit is contained in:
赵正易
2024-03-29 15:30:54 +08:00
parent 04f5aee6a0
commit 51305bc7ab

View File

@@ -115,7 +115,7 @@ namespace ZR.Service.Business
var predicate = Expressionable.Create<AgvLocation>()
.AndIF(location.AreaCode>-1, it => it.AreaCode == location.AreaCode)
.AndIF(location.Type > -1, it => it.Type == location.Type)
.AndIF(string.IsNullOrEmpty(location.Coordinate), it => it.Coordinate == location.Coordinate);
.AndIF(!string.IsNullOrEmpty(location.Coordinate), it => it.Coordinate == location.Coordinate);
return Context.Queryable<AgvLocation>().Where(predicate.ToExpression()).ToList();