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.
|
|
|
|
using Entity.Ammeter;
|
|
|
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
|
using HybirdFrameworkCore.Entity;
|
|
|
|
|
using Repository.Ammeter;
|
|
|
|
|
|
|
|
|
|
namespace Service.Ammeter
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Scope("SingleInstance")]
|
|
|
|
|
public class EmeterMinutesEnergyService : BaseServices<EmeterMinutesEnergy>
|
|
|
|
|
{
|
|
|
|
|
EmeterMinutesEnergyRepository _emeterMinutesEnergyRepository1;
|
|
|
|
|
public EmeterMinutesEnergyService(EmeterMinutesEnergyRepository emeterMinutesEnergyRepository)
|
|
|
|
|
{
|
|
|
|
|
this.BaseDal = emeterMinutesEnergyRepository;
|
|
|
|
|
_emeterMinutesEnergyRepository1 = emeterMinutesEnergyRepository;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task<PageResult<EmeterMinutesEnergy>> Page(AmmeterQueryPageModel queryPageModel)
|
|
|
|
|
{
|
|
|
|
|
QueryPageModel queryPageModel1 = new QueryPageModel
|
|
|
|
|
{
|
|
|
|
|
Page = queryPageModel.Page,
|
|
|
|
|
PageSize = queryPageModel.PageSize,
|
|
|
|
|
};
|
|
|
|
|
if (!string.IsNullOrEmpty(queryPageModel.Code))
|
|
|
|
|
return PageResult<EmeterMinutesEnergy>.ConvertPage(_emeterMinutesEnergyRepository1.QueryIPageByCause(queryPageModel1, u => u.Code == queryPageModel.Code));
|
|
|
|
|
else
|
|
|
|
|
return PageResult<EmeterMinutesEnergy>.ConvertPage(_emeterMinutesEnergyRepository1.QueryIPageByCause(queryPageModel1, null));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|