24 lines
733 B
C#
24 lines
733 B
C#
|
|
using InSituLaboratory.Entities;
|
|||
|
|
using InSituLaboratory.IService.History;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace InSituLaboratory.Service.History
|
|||
|
|
{
|
|||
|
|
public class CavityOtputStatusService : BaseService, ICavityOtputStatusService
|
|||
|
|
{
|
|||
|
|
public CavityOtputStatusService(DbContext context) : base(context) { }
|
|||
|
|
|
|||
|
|
public IEnumerable<cavityoutputstatus> GetCavityOtputStatus(string key)
|
|||
|
|
{
|
|||
|
|
return Set<cavityoutputstatus>().OrderByDescending(p => p.RecordTime)
|
|||
|
|
.Where(m => string.IsNullOrEmpty(key) || m.RecordTime.ToString().Contains(key));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|