箱子搬运
This commit is contained in:
parent
9e24508cf1
commit
40c500ef7f
@ -33,7 +33,20 @@ namespace ZR.Admin.WebApi.Controllers.mes.mm
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 包装箱字位置
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("finish_point_pack")]
|
||||
public IActionResult Finish_point_pack()
|
||||
{
|
||||
string[] response = finishedwarehouseService.Finish_point_pack();
|
||||
|
||||
return SUCCESS(response);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,5 +9,6 @@ namespace ZR.Service.mes.mm.IService
|
||||
public interface IMmFinishedwarehouseService
|
||||
{
|
||||
string[] Finish_point();
|
||||
string[] Finish_point_pack();
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,5 +27,18 @@ namespace ZR.Service.mes.mm
|
||||
|
||||
return cors;
|
||||
}
|
||||
|
||||
|
||||
public string[] Finish_point_pack()
|
||||
{
|
||||
List<MmAgvLocation> positions = Context.Queryable<MmAgvLocation>()
|
||||
.Where(it => it.AreaCode == 9 || it.AreaCode == 10)
|
||||
.ToList();
|
||||
|
||||
string[] cors = new string[positions.Count];
|
||||
for (int i = 0; i < positions.Count; i++) cors[i] = positions[i].Coordinate.ToString();
|
||||
|
||||
return cors;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user