chengpingruku

This commit is contained in:
qianhao.xu
2024-04-30 14:18:00 +08:00
parent 41e2c229c6
commit 3852de24f9
7 changed files with 203 additions and 13 deletions

View File

@@ -0,0 +1,31 @@
using Infrastructure.Attribute;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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>()
.Where(it => it.AreaCode == 4|| it.AreaCode == 5)
.ToList();
string[] cors = new string[positions.Count];
for (int i = 0; i < positions.Count; i++) cors[i] = positions[i].Coordinate.ToString();
return cors;
}
}
}