parent
79c6449a0a
commit
e62cd8272c
@ -0,0 +1,16 @@
|
||||
using Entity.DbModel.Station;
|
||||
using HybirdFrameworkCore.Autofac.Attribute;
|
||||
using SqlSugar;
|
||||
using Entity.DbModel.System;
|
||||
|
||||
namespace Repository.Station;
|
||||
|
||||
[Scope("SingleInstance")]
|
||||
public class EmeterEnergyChangeRepository : BaseRepository<EmeterEnergyChange>
|
||||
{
|
||||
private ISqlSugarClient DbBaseClient;
|
||||
public EmeterEnergyChangeRepository(ISqlSugarClient sqlSugar) : base(sqlSugar)
|
||||
{
|
||||
DbBaseClient = sqlSugar;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using Entity.DbModel.Station;
|
||||
using HybirdFrameworkCore.Autofac.Attribute;
|
||||
using SqlSugar;
|
||||
using Entity.DbModel.System;
|
||||
|
||||
|
||||
namespace Repository.Station;
|
||||
|
||||
[Scope("SingleInstance")]
|
||||
public class EmeterEnergyRepository : BaseRepository<EmeterEnergy>
|
||||
{
|
||||
private ISqlSugarClient DbBaseClient;
|
||||
public EmeterEnergyRepository(ISqlSugarClient sqlSugar) : base(sqlSugar)
|
||||
{
|
||||
DbBaseClient = sqlSugar;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using Entity.DbModel.Station;
|
||||
using HybirdFrameworkCore.Autofac.Attribute;
|
||||
using Repository.Station;
|
||||
|
||||
namespace Service.Station;
|
||||
|
||||
[Scope("SingleInstance")]
|
||||
public class EmeterEnergyChangeService : BaseServices<EmeterEnergyChange>
|
||||
{
|
||||
private readonly EmeterEnergyChangeRepository _emeterEnergyChangeRep;
|
||||
|
||||
public EmeterEnergyChangeService(EmeterEnergyChangeRepository emeterEnergyChangeRep)
|
||||
{
|
||||
_emeterEnergyChangeRep = emeterEnergyChangeRep;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using Entity.DbModel.Station;
|
||||
using HybirdFrameworkCore.Autofac.Attribute;
|
||||
using Repository.Station;
|
||||
|
||||
namespace Service.Station;
|
||||
|
||||
[Scope("SingleInstance")]
|
||||
public class EmeterEnergyService : BaseServices<EmeterEnergy>
|
||||
{
|
||||
private readonly EmeterEnergyRepository _emeterEnergyRep;
|
||||
|
||||
public EmeterEnergyService(EmeterEnergyRepository emeterEnergyRep)
|
||||
{
|
||||
_emeterEnergyRep = emeterEnergyRep;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue