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
|
|
|
|
|
|
|
|
|
|
public IEnumerable<cavityenvironment> GetCavityEnvironment(string key)
|
|
|
|
|
|
{
|
2024-03-26 07:22:15 +00:00
|
|
|
|
return Set<cavityenvironment>().OrderByDescending(p => p.RecordTime)
|
2024-03-15 02:27:50 +00:00
|
|
|
|
.Where(m => string.IsNullOrEmpty(key) || m.RecordTime.ToString().Contains(key));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|