2024-03-15 02:27:50 +00:00
|
|
|
|
using InSituLaboratory.Entities;
|
2024-03-26 07:22:15 +00:00
|
|
|
|
using InSituLaboratory.IService.History;
|
2024-03-15 02:27:50 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
2024-03-26 07:22:15 +00:00
|
|
|
|
namespace InSituLaboratory.Service.History
|
2024-03-15 02:27:50 +00:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 腔体内部环境
|
|
|
|
|
|
/// </summary>
|
2024-03-26 07:22:15 +00:00
|
|
|
|
public class CavityEnvironmentService : BaseService, ICavityEnvironmentService
|
2024-03-15 02:27:50 +00:00
|
|
|
|
{
|
2024-03-26 07:22:15 +00:00
|
|
|
|
public CavityEnvironmentService(DbContext context) : base(context) { }
|
2024-03-15 02:27:50 +00:00
|
|
|
|
|
2024-03-27 09:27:10 +00:00
|
|
|
|
public IEnumerable<cavityenvironment> GetCavityEnvironment(string key, int pageSize, int pageIndex, out int totalCount)
|
2024-03-15 02:27:50 +00:00
|
|
|
|
{
|
2024-03-27 09:27:10 +00:00
|
|
|
|
var pResult = this.QueryPage<cavityenvironment, string>(m => string.IsNullOrEmpty(key) || m.RecordTime.ToString().Contains(key), pageSize, pageIndex, order => order.RecordTime.ToString(), false);
|
|
|
|
|
|
|
|
|
|
|
|
totalCount = pResult.TotalCount;
|
2024-03-15 02:27:50 +00:00
|
|
|
|
|
2024-03-27 09:27:10 +00:00
|
|
|
|
return pResult.DataList;
|
|
|
|
|
|
}
|
2024-03-15 02:27:50 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|