This commit is contained in:
赵正易
2024-03-29 15:20:12 +08:00
3 changed files with 11 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ namespace ZR.Admin.WebApi.Controllers
}
/// <summary>
/// 5. 获取agv位置
/// 6 获取agv 起点和终点
/// </summary>
/// <param name="taskId"></param>
/// <returns></returns>

View File

@@ -17,6 +17,15 @@ namespace ZR.Model.MES.wms
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 区域
/// </summary>
[SugarColumn(ColumnName = "area_code")]
public int? AreaCode { get; set; }
/// <summary>
/// 区域
/// </summary>

View File

@@ -113,7 +113,7 @@ namespace ZR.Service.Business
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.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);