|
|
@ -311,11 +311,11 @@ public class CloudClientMgr
|
|
|
|
EmeterEnergyChangeService emeterEnergyChangeService = AppInfo.Container.Resolve<EmeterEnergyChangeService>();
|
|
|
|
EmeterEnergyChangeService emeterEnergyChangeService = AppInfo.Container.Resolve<EmeterEnergyChangeService>();
|
|
|
|
|
|
|
|
|
|
|
|
List<EmeterEnergy> emeterEnergy = emeterEnergyService.QueryListByClause(u=>u.UploadFlag==0, 7,i => i.UploadTime,
|
|
|
|
List<EmeterEnergy> emeterEnergy = emeterEnergyService.QueryListByClause(u=>u.UploadFlag==0, 7,i => i.UploadTime,
|
|
|
|
OrderByType.Asc);
|
|
|
|
OrderByType.Desc);
|
|
|
|
emeterEnergy = emeterEnergy.OrderBy(p => p.Code).ToList();
|
|
|
|
emeterEnergy = emeterEnergy.OrderBy(p => p.Code).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
var emeterEnergyChange = emeterEnergyChangeService.QueryListByClause(u => u.UploadFlag == 0, 7, i => i.UploadTime,
|
|
|
|
var emeterEnergyChange = emeterEnergyChangeService.QueryListByClause(u => u.UploadFlag == 0, 7, i => i.UploadTime,
|
|
|
|
OrderByType.Asc);
|
|
|
|
OrderByType.Desc);
|
|
|
|
emeterEnergyChange = emeterEnergyChange.OrderBy(p => p.Code).ToList();
|
|
|
|
emeterEnergyChange = emeterEnergyChange.OrderBy(p => p.Code).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -369,11 +369,11 @@ public class CloudClientMgr
|
|
|
|
EmeterEnergyChangeService emeterEnergyChangeService = AppInfo.Container.Resolve<EmeterEnergyChangeService>();
|
|
|
|
EmeterEnergyChangeService emeterEnergyChangeService = AppInfo.Container.Resolve<EmeterEnergyChangeService>();
|
|
|
|
|
|
|
|
|
|
|
|
List<EmeterEnergy> emeterEnergy = emeterEnergyService.QueryListByClause(u => u.UploadFlag == 0, 7, i => i.UploadTime,
|
|
|
|
List<EmeterEnergy> emeterEnergy = emeterEnergyService.QueryListByClause(u => u.UploadFlag == 0, 7, i => i.UploadTime,
|
|
|
|
OrderByType.Asc);
|
|
|
|
OrderByType.Desc);
|
|
|
|
emeterEnergy = emeterEnergy.OrderBy(p => p.Code).ToList();
|
|
|
|
emeterEnergy = emeterEnergy.OrderBy(p => p.Code).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
var emeterEnergyChange = emeterEnergyChangeService.QueryListByClause(u => u.UploadFlag == 0, 7, i => i.UploadTime,
|
|
|
|
var emeterEnergyChange = emeterEnergyChangeService.QueryListByClause(u => u.UploadFlag == 0, 7, i => i.UploadTime,
|
|
|
|
OrderByType.Asc);
|
|
|
|
OrderByType.Desc);
|
|
|
|
emeterEnergyChange = emeterEnergyChange.OrderBy(p => p.Code).ToList();
|
|
|
|
emeterEnergyChange = emeterEnergyChange.OrderBy(p => p.Code).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -427,7 +427,7 @@ public class CloudClientMgr
|
|
|
|
_dateTime7 = DateTime.Now;
|
|
|
|
_dateTime7 = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
|
|
var emeterEnergy = emeterHourEnergyService.QueryListByClause(u => u.UploadFlag == 0, 14, i => i.Time,
|
|
|
|
var emeterEnergy = emeterHourEnergyService.QueryListByClause(u => u.UploadFlag == 0, 14, i => i.Time,
|
|
|
|
OrderByType.Asc);
|
|
|
|
OrderByType.Desc);
|
|
|
|
emeterEnergy = emeterEnergy.OrderBy(p => p.Code).ToList();
|
|
|
|
emeterEnergy = emeterEnergy.OrderBy(p => p.Code).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
var emeterEnergy1= emeterEnergy.Where(p => p.Type==1).ToList();
|
|
|
|
var emeterEnergy1= emeterEnergy.Where(p => p.Type==1).ToList();
|
|
|
@ -494,7 +494,7 @@ public class CloudClientMgr
|
|
|
|
EmeterDayEnergyService emeterDayEnergyService = AppInfo.Container.Resolve<EmeterDayEnergyService>();
|
|
|
|
EmeterDayEnergyService emeterDayEnergyService = AppInfo.Container.Resolve<EmeterDayEnergyService>();
|
|
|
|
|
|
|
|
|
|
|
|
var emeterEnergy = emeterDayEnergyService.QueryListByClause(u => u.UploadFlag == 0, 14, i => i.Time,
|
|
|
|
var emeterEnergy = emeterDayEnergyService.QueryListByClause(u => u.UploadFlag == 0, 14, i => i.Time,
|
|
|
|
OrderByType.Asc);
|
|
|
|
OrderByType.Desc);
|
|
|
|
emeterEnergy = emeterEnergy.OrderBy(p => p.Code).ToList();
|
|
|
|
emeterEnergy = emeterEnergy.OrderBy(p => p.Code).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
var emeterEnergy1 = emeterEnergy.Where(p => p.Type == 1).ToList();
|
|
|
|
var emeterEnergy1 = emeterEnergy.Where(p => p.Type == 1).ToList();
|
|
|
@ -561,7 +561,7 @@ public class CloudClientMgr
|
|
|
|
_dateTime9 = DateTime.Now;
|
|
|
|
_dateTime9 = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
|
|
var emeterEnergy = emeterHourEnergyService.QueryListByClause(u => u.Type == 1, 7, i => i.Time,
|
|
|
|
var emeterEnergy = emeterHourEnergyService.QueryListByClause(u => u.Type == 1, 7, i => i.Time,
|
|
|
|
OrderByType.Asc);
|
|
|
|
OrderByType.Desc);
|
|
|
|
float hc = emeterEnergy.Sum(e => e.Value);
|
|
|
|
float hc = emeterEnergy.Sum(e => e.Value);
|
|
|
|
StaHourEnergyVal meterEnergyKwh = new()
|
|
|
|
StaHourEnergyVal meterEnergyKwh = new()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -594,7 +594,7 @@ public class CloudClientMgr
|
|
|
|
_dateTime10 = DateTime.Now;
|
|
|
|
_dateTime10 = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
|
|
var emeterEnergy = emeterDayEnergyService.QueryListByClause(u => u.Type == 1, 7, i => i.Time,
|
|
|
|
var emeterEnergy = emeterDayEnergyService.QueryListByClause(u => u.Type == 1, 7, i => i.Time,
|
|
|
|
OrderByType.Asc);
|
|
|
|
OrderByType.Desc);
|
|
|
|
|
|
|
|
|
|
|
|
float dc = emeterEnergy.Sum(e => e.Value);
|
|
|
|
float dc = emeterEnergy.Sum(e => e.Value);
|
|
|
|
|
|
|
|
|
|
|
@ -631,7 +631,7 @@ public class CloudClientMgr
|
|
|
|
ExStationDayRunResultService exStationDayRunResultService = AppInfo.Container.Resolve<ExStationDayRunResultService>();
|
|
|
|
ExStationDayRunResultService exStationDayRunResultService = AppInfo.Container.Resolve<ExStationDayRunResultService>();
|
|
|
|
|
|
|
|
|
|
|
|
var exStationDayRunResult = exStationDayRunResultService.QueryByClause(u => u.Id !=0, i => i.CreatedTime,
|
|
|
|
var exStationDayRunResult = exStationDayRunResultService.QueryByClause(u => u.Id !=0, i => i.CreatedTime,
|
|
|
|
OrderByType.Asc);
|
|
|
|
OrderByType.Desc);
|
|
|
|
|
|
|
|
|
|
|
|
StaDayOpeEnergyVal staDayOpeEnergyVal = new()
|
|
|
|
StaDayOpeEnergyVal staDayOpeEnergyVal = new()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -668,7 +668,7 @@ public class CloudClientMgr
|
|
|
|
_dateTime2 = DateTime.Now;
|
|
|
|
_dateTime2 = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
|
|
var emeterEnergy = emeterDayEnergyService.QueryListByClause(u => u.Type == 1, 7, i => i.Time,
|
|
|
|
var emeterEnergy = emeterDayEnergyService.QueryListByClause(u => u.Type == 1, 7, i => i.Time,
|
|
|
|
OrderByType.Asc);
|
|
|
|
OrderByType.Desc);
|
|
|
|
float hc = emeterEnergy.Sum(e => e.Value);
|
|
|
|
float hc = emeterEnergy.Sum(e => e.Value);
|
|
|
|
|
|
|
|
|
|
|
|
ElecPriceModelVersionDetailServices elecPriceModelVersionDetailServices = AppInfo.Container.Resolve<ElecPriceModelVersionDetailServices>();
|
|
|
|
ElecPriceModelVersionDetailServices elecPriceModelVersionDetailServices = AppInfo.Container.Resolve<ElecPriceModelVersionDetailServices>();
|
|
|
|