修復列表

This commit is contained in:
b110212000 2021-09-07 18:38:14 +08:00
parent 495100c5d3
commit 1cb05ab374
7 changed files with 7 additions and 7 deletions

View File

@ -38,7 +38,7 @@ namespace SolarPower.Controllers
try
{
var myPowerStations = myPowerStationService.GetMyPowerStations(myUser, cityIds);
var myPowerStations = myPowerStationService.GetMyPowerStations(myUser,1, cityIds);
apiResult.Code = "0000";
apiResult.Data = myPowerStations;

View File

@ -67,7 +67,7 @@ namespace SolarPower.Controllers
try
{
var myPowerStations = myPowerStationService.GetMyPowerStations(myUser, cityIds);
var myPowerStations = myPowerStationService.GetMyPowerStations(myUser,1, cityIds);
apiResult.Code = "0000";
apiResult.Data = myPowerStations;

View File

@ -50,7 +50,7 @@ namespace SolarPower.Controllers
var temp_solartype_where = @" ps.SolarType = 0";
where.Add(temp_solartype_where);
var powerStations = myPowerStationService.GetMyPowerStations(myUser, null, where, where_entities);
var powerStations = myPowerStationService.GetMyPowerStations(myUser, 1, null, where, where_entities);
var siteDBNamePowerStationId = new Dictionary<string, List<PowerStation>>();

View File

@ -2180,7 +2180,7 @@ namespace SolarPower.Controllers
{
apiResult.Code = "0000";
//solaramount = await powerStationRepository.GetSolarCitySummary(myUser);
solaramount = myPowerStationService.GetMyCities(myUser);
solaramount = myPowerStationService.GetMyCities(myUser, 0);
apiResult.Data = solaramount;
}

View File

@ -87,7 +87,7 @@ namespace SolarPower.Controllers
}
order.Add(temp_pr_order_by);
var myPowerStations = myPowerStationService.GetMyPowerStations(myUser, filter.CityIds, where, null, order);
var myPowerStations = myPowerStationService.GetMyPowerStations(myUser, 1, filter.CityIds, where, null, order);
foreach(var powerStation in myPowerStations)
{

View File

@ -52,7 +52,7 @@ namespace SolarPower.Controllers
where_entities.Add("Filter", filter);
}
var powerStations = myPowerStationService.GetMyPowerStations(myUser, null, where, where_entities);
var powerStations = myPowerStationService.GetMyPowerStations(myUser, 1, null, where, where_entities);
var siteDBNamePowerStationId = new Dictionary<string, List<PowerStation>>();

View File

@ -38,7 +38,7 @@ namespace SolarPower.Services.Implement
{
List<PowerStation> powerStations = new List<PowerStation>();
powerStations = powerStationRepository.GetMyPowerStationList(myUser, cityIds, wheres, where_entities, orderBy);
powerStations = powerStationRepository.GetMyPowerStationList(myUser,1, cityIds, wheres, where_entities, orderBy);
var myPowerStations_group = powerStations.GroupBy(x => x.CityId);