|
@@ -3,7 +3,8 @@ package com.sky.ioc.service.carbon.impl;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.sky.ioc.entity.Indeicator;
|
|
|
import com.sky.ioc.entity.Label;
|
|
|
-import com.sky.ioc.entity.cake;
|
|
|
+import com.sky.ioc.entity.Cake;
|
|
|
+import com.sky.ioc.entity.News;
|
|
|
import com.sky.ioc.entity.params.IocDateParam;
|
|
|
import com.sky.ioc.service.carbon.CarbonService;
|
|
|
import com.sky.ioc.tool.GeneralMethod;
|
|
@@ -154,17 +155,21 @@ public class CarbonServiceImpl implements CarbonService {
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getCarbonNews(IocDateParam iocDateParam) {
|
|
|
- return null;
|
|
|
+ List<News> newsList = new ArrayList<>();
|
|
|
+ newsList.add(new News());
|
|
|
+ newsList.add(new News());
|
|
|
+ newsList.add(new News());
|
|
|
+ return ReturnMsg.ok();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getCarbonProportion(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
- list.add(new cake("dieselOil"));
|
|
|
- list.add(new cake("gasoline"));
|
|
|
- list.add(new cake("naturalGas"));
|
|
|
- list.add(new cake("power"));
|
|
|
- list.add(new cake("qita"));
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
+ list.add(new Cake("dieselOil"));
|
|
|
+ list.add(new Cake("gasoline"));
|
|
|
+ list.add(new Cake("naturalGas"));
|
|
|
+ list.add(new Cake("power"));
|
|
|
+ list.add(new Cake("qita"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
@@ -407,9 +412,9 @@ public class CarbonServiceImpl implements CarbonService {
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getPhotovoltaicProfit() {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
- list.add(new cake("amountSubsidy"));
|
|
|
- list.add(new cake("saving"));
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
+ list.add(new Cake("amountSubsidy"));
|
|
|
+ list.add(new Cake("saving"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
@@ -471,107 +476,107 @@ public class CarbonServiceImpl implements CarbonService {
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getEnergyAnalysisWater(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
- list.add(new cake("office"));
|
|
|
- list.add(new cake("computerRoom"));
|
|
|
- list.add(new cake("restaurant"));
|
|
|
- list.add(new cake("parkingLot"));
|
|
|
- list.add(new cake("qita"));
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
+ list.add(new Cake("office"));
|
|
|
+ list.add(new Cake("computerRoom"));
|
|
|
+ list.add(new Cake("restaurant"));
|
|
|
+ list.add(new Cake("parkingLot"));
|
|
|
+ list.add(new Cake("qita"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getEnergyAnalysisTotal(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
- list.add(new cake("power"));
|
|
|
- list.add(new cake("hot"));
|
|
|
- list.add(new cake("clod"));
|
|
|
- list.add(new cake("cpv"));
|
|
|
- list.add(new cake("water"));
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
+ list.add(new Cake("power"));
|
|
|
+ list.add(new Cake("hot"));
|
|
|
+ list.add(new Cake("clod"));
|
|
|
+ list.add(new Cake("cpv"));
|
|
|
+ list.add(new Cake("water"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getEnergyAnalysisPower(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
- list.add(new cake("computerRoom"));
|
|
|
- list.add(new cake("socket"));
|
|
|
- list.add(new cake("lighting"));
|
|
|
- list.add(new cake("airConditioner"));
|
|
|
- list.add(new cake("qita"));
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
+ list.add(new Cake("computerRoom"));
|
|
|
+ list.add(new Cake("socket"));
|
|
|
+ list.add(new Cake("lighting"));
|
|
|
+ list.add(new Cake("airConditioner"));
|
|
|
+ list.add(new Cake("qita"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getEnergyAnalysisHot(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
System.out.println(list);
|
|
|
- list.add(new cake("computerRoom"));
|
|
|
- list.add(new cake("parking"));
|
|
|
- list.add(new cake("restaurant"));
|
|
|
- list.add(new cake("office"));
|
|
|
- list.add(new cake("qita"));
|
|
|
+ list.add(new Cake("computerRoom"));
|
|
|
+ list.add(new Cake("parking"));
|
|
|
+ list.add(new Cake("restaurant"));
|
|
|
+ list.add(new Cake("office"));
|
|
|
+ list.add(new Cake("qita"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getEnergyAnalysisClod(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
System.out.println(list);
|
|
|
- list.add(new cake("function"));
|
|
|
- list.add(new cake("whole"));
|
|
|
- list.add(new cake("clodTotal"));
|
|
|
- list.add(new cake("perCapitaCost"));
|
|
|
- list.add(new cake("inletWaterTemperature"));
|
|
|
- list.add(new cake("outletWaterTemperature"));
|
|
|
+ list.add(new Cake("function"));
|
|
|
+ list.add(new Cake("whole"));
|
|
|
+ list.add(new Cake("clodTotal"));
|
|
|
+ list.add(new Cake("perCapitaCost"));
|
|
|
+ list.add(new Cake("inletWaterTemperature"));
|
|
|
+ list.add(new Cake("outletWaterTemperature"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getEnergyAnalysisCpv(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
System.out.println(list);
|
|
|
- list.add(new cake("function"));
|
|
|
- list.add(new cake("whole"));
|
|
|
- list.add(new cake("electricTotal"));
|
|
|
- list.add(new cake("electricDate"));
|
|
|
- list.add(new cake("profitTotal"));
|
|
|
+ list.add(new Cake("function"));
|
|
|
+ list.add(new Cake("whole"));
|
|
|
+ list.add(new Cake("electricTotal"));
|
|
|
+ list.add(new Cake("electricDate"));
|
|
|
+ list.add(new Cake("profitTotal"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getEnergyAnalysisTotalInfo(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
System.out.println(list);
|
|
|
- list.add(new cake("monthlyEnergySaving"));
|
|
|
- list.add(new cake("annualEnergySaving"));
|
|
|
+ list.add(new Cake("monthlyEnergySaving"));
|
|
|
+ list.add(new Cake("annualEnergySaving"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getEnergyAnalysisWaterInfo(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
System.out.println(list);
|
|
|
- list.add(new cake("waterConsumptionTotal"));
|
|
|
- list.add(new cake("perCapitaCost"));
|
|
|
+ list.add(new Cake("waterConsumptionTotal"));
|
|
|
+ list.add(new Cake("perCapitaCost"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getEnergyAnalysisPowerInfo(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
System.out.println(list);
|
|
|
- list.add(new cake("powerConsumptionTotal"));
|
|
|
- list.add(new cake("energyConservation"));
|
|
|
+ list.add(new Cake("powerConsumptionTotal"));
|
|
|
+ list.add(new Cake("energyConservation"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public ReturnMsg getEnergyAnalysisHotInfo(IocDateParam iocDateParam) {
|
|
|
- List<cake> list = new ArrayList<>();
|
|
|
+ List<Cake> list = new ArrayList<>();
|
|
|
System.out.println(list);
|
|
|
- list.add(new cake("heatConsumptionTotal"));
|
|
|
- list.add(new cake("perCapitaCost"));
|
|
|
+ list.add(new Cake("heatConsumptionTotal"));
|
|
|
+ list.add(new Cake("perCapitaCost"));
|
|
|
return ReturnMsg.ok(list);
|
|
|
}
|
|
|
|