30 lines
1003 B
C#
30 lines
1003 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
|
|
{
|
|
/// <summary>
|
|
/// 腔体电能转换板使能状态
|
|
/// </summary>
|
|
public class CavityEnergyConversionService : BaseService, ICavityEnergyConversionService
|
|
{
|
|
public CavityEnergyConversionService(DbContext context) : base(context) { }
|
|
|
|
public IEnumerable<cavityenergyconversion> GetCavityEnergyConversion(string key, int pageSize, int pageIndex, out int totalCount)
|
|
{
|
|
var pResult = this.QueryPage<cavityenergyconversion, string>(m => string.IsNullOrEmpty(key) || m.RecordTime.ToString().Contains(key), pageSize, pageIndex, order => order.RecordTime.ToString(), false);
|
|
|
|
totalCount = pResult.TotalCount;
|
|
|
|
return pResult.DataList;
|
|
}
|
|
|
|
}
|
|
}
|