wms:agv:init
This commit is contained in:
@@ -17,5 +17,7 @@ namespace ZR.Service.mes.wms.IService
|
||||
int AddAGVTask(AgvTask task);
|
||||
|
||||
int DeleteTask(string taskId);
|
||||
|
||||
List<AgvLocation> GetAGV_position_list(AgvLocation location);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,10 +104,21 @@ namespace ZR.Service.Business
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 6 获取agv 起点和终点
|
||||
/// </summary>
|
||||
/// <param name="location"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
public List<AgvLocation> GetAGV_position_list(AgvLocation location)
|
||||
{
|
||||
var predicate = Expressionable.Create<AgvLocation>()
|
||||
.AndIF(string.IsNullOrEmpty(location.Area), it => it.Area == location.Area)
|
||||
.AndIF(location.Type > -1, it => it.Type == location.Type)
|
||||
.AndIF(string.IsNullOrEmpty(location.Coordinate), it => it.Coordinate == location.Coordinate);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return Context.Queryable<AgvLocation>().Where(predicate.ToExpression()).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user