using PadApplication.DB;
|
using PadApplication.Entites.DbModels;
|
using PadApplication.Entites.Dto;
|
|
namespace PadApplication.Services;
|
|
public class DeviceMetricsManager : Repository<DeviceMetrics>
|
{
|
//当前类已经继承了 Repository 增、删、查、改的方法
|
|
//private readonly WomdaaManager _womdaaService = new();
|
|
public List<DeviceMetrics> GetListByOrderNo(OrderMachineDto query)
|
{
|
var womdaa = Db.Queryable<VOrderBycl> ()
|
.Where(a => a.ID == query.OrderId).First();
|
|
return Db.Queryable<DeviceMetrics>()
|
// .Where(s => s.ItemNo == womdaa.engineeringNo)
|
.Where(s => s.ItemNo == womdaa.Daa002)
|
.OrderBy("GROUP_SEQ,SEQ")
|
.ToList();
|
}
|
}
|