You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB

6 months ago
using Entity.Ammeter;
using HybirdFrameworkCore.Autofac.Attribute;
using HybirdFrameworkCore.Entity;
6 months ago
using Repository.Ammeter;
namespace Service.Ammeter
{
/// <summary>
///
/// </summary>
[Scope("SingleInstance")]
public class EmeterDayEnergyService : BaseServices<EmeterDayEnergy>
{
public EmeterDayEnergyService(EmeterDayEnergyRepository service)
{
this.BaseDal = service;
6 months ago
}
public async Task<PageResult<EmeterDayEnergy>> Page(AmmeterQueryPageModel queryPageModel)
{
QueryPageModel queryPageModel1 = new QueryPageModel
{
Page = queryPageModel.Page,
PageSize = queryPageModel.PageSize,
};
if (!string.IsNullOrEmpty(queryPageModel.Code))
return PageResult<EmeterDayEnergy>.ConvertPage(this.BaseDal.QueryIPageByCause(queryPageModel1, u => u.Code == queryPageModel.Code));
else
return PageResult<EmeterDayEnergy>.ConvertPage(this.BaseDal.QueryIPageByCause(queryPageModel1, null));
}
6 months ago
}
}