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 CavityOtputStatusService : BaseService, ICavityOtputStatusService
|
|
|
|
|
|
{
|
|
|
|
|
|
public CavityOtputStatusService(DbContext context) : base(context) { }
|
|
|
|
|
|
|
2024-03-27 09:27:10 +00:00
|
|
|
|
public IEnumerable<cavityoutputstatus> GetCavityOtputStatus(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<cavityoutputstatus, 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
|
|
|
|
}
|
|
|
|
|
|
}
|