28 lines
894 B
C#
28 lines
894 B
C#
using DOAN.Model.MES.product;
|
|
using DOAN.Service.MES.product.IService;
|
|
using Infrastructure.Attribute;
|
|
using Infrastructure.Extensions;
|
|
|
|
namespace DOAN.Service.MES.product
|
|
{
|
|
/// <summary>
|
|
/// 工单导出服务
|
|
/// </summary>
|
|
[AppService(ServiceType = typeof(IProWorkorderExportService), ServiceLifetime = LifeTime.Transient)]
|
|
public class ProWorkorderExportService : BaseService<ProWorkorder>, IProWorkorderExportService
|
|
{
|
|
/// <summary>
|
|
/// 工单导出
|
|
/// </summary>
|
|
/// <param name="exportTime"></param>
|
|
/// <returns></returns>
|
|
public List<ProWorkorder> WorkOrderExport(DateTime exportTime)
|
|
{
|
|
exportTime = exportTime.Date;
|
|
return Context
|
|
.Queryable<ProWorkorder>()
|
|
.Where(it => it.WorkorderDate == exportTime)
|
|
.ToList();
|
|
}
|
|
}
|
|
} |