20230201_145_upperpc/InSituLaboratory.Service/History/CavityOtputFeedBackService.cs
2024-03-26 15:22:15 +08:00

24 lines
745 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 CavityOtputFeedBackService : BaseService, ICavityOtputFeedBackService
{
public CavityOtputFeedBackService(DbContext context) : base(context) { }
public IEnumerable<cavityoutputfeedback> GetCavityOtputFeedBack(string key)
{
return Set<cavityoutputfeedback>().OrderByDescending(p => p.RecordTime)
.Where(m => string.IsNullOrEmpty(key) || m.RecordTime.ToString().Contains(key));
}
}
}