33 lines
831 B
C#
33 lines
831 B
C#
using DOAN.Model.MES.andon;
|
|
using DOAN.Model.MES.base_;
|
|
using DOAN.Model.MES.dev;
|
|
using DOAN.Service.MES.BI.IService;
|
|
using DOAN.Service.MES.BI.IService;
|
|
using Infrastructure.Attribute;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DOAN.Service.MES.BI
|
|
{
|
|
[AppService(ServiceType = typeof(IAndonDataAnalysisService), ServiceLifetime = LifeTime.Transient)]
|
|
public class AndonDataAnalysisService : BaseService<AndonFaultRecord>, IAndonDataAnalysisService
|
|
{
|
|
/// <summary>
|
|
/// 获取组
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public string[] GetRoute()
|
|
{
|
|
return Context.Queryable<BaseWorkRoute>().Where(it => it.Status == 1).Select(it => it.Code).ToArray();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|