20230201_145_upperpc/InSituLaboratory.Service/History/CavityOtputFeedBackService.cs

26 lines
915 B
C#
Raw Normal View History

2024-05-08 10:01:39 +00:00
using InSituLaboratory.Entities.SysData;
2024-03-26 07:22:15 +00:00
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) { }
2024-03-27 09:27:10 +00:00
public IEnumerable<cavityoutputfeedback> GetCavityOtputFeedBack(string key, int pageSize, int pageIndex, out int totalCount)
2024-03-26 07:22:15 +00:00
{
2024-03-27 09:27:10 +00:00
var pResult = this.QueryPage<cavityoutputfeedback, string>(m => string.IsNullOrEmpty(key) || m.RecordTime.ToString().Contains(key), pageSize, pageIndex, order => order.RecordTime.ToString(), false);
totalCount = pResult.TotalCount;
2024-03-26 07:22:15 +00:00
2024-03-27 09:27:10 +00:00
return pResult.DataList;
}
2024-03-26 07:22:15 +00:00
}
}