wms:agv: agv点位信息修改

This commit is contained in:
qianhao.xu
2024-03-29 14:43:15 +08:00
parent 5bbc99cb74
commit c4394798d7
2 changed files with 10 additions and 1 deletions

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);