shgx_tz_mom/ZR.Service/mes/mm/MmFinishedwarehouseService.cs

39 lines
1.3 KiB
C#
Raw Normal View History

2024-04-30 14:18:00 +08:00
using Infrastructure.Attribute;
using ZR.Model.MES.mm;
using ZR.Service.mes.mm.IService;
namespace ZR.Service.mes.mm
{
[AppService(ServiceType = typeof(IMmFinishedwarehouseService), ServiceLifetime = LifeTime.Transient)]
public class MmFinishedwarehouseService : BaseService<MmAgvLocation>, IMmFinishedwarehouseService
{
public string[] Finish_point()
{
List<MmAgvLocation> positions = Context.Queryable<MmAgvLocation>()
2024-06-07 11:04:26 +08:00
.Where(it => it.AreaCode == 4 || it.AreaCode == 5 || it.AreaCode == 8)
2024-04-30 14:18:00 +08:00
.ToList();
string[] cors = new string[positions.Count];
for (int i = 0; i < positions.Count; i++) cors[i] = positions[i].Coordinate.ToString();
return cors;
}
2024-05-17 10:32:19 +08:00
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;
}
2024-04-30 14:18:00 +08:00
}
}