|
@@ -1,5 +1,8 @@
|
|
|
package com.sky.ioc.service.carbon.impl;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.sky.ioc.entity.Indeicator;
|
|
|
+import com.sky.ioc.entity.params.IocDateParam;
|
|
|
import com.sky.ioc.service.carbon.CarbonService;
|
|
|
import com.sky.ioc.tool.ReturnMsg;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -54,102 +57,195 @@ public class CarbonServiceImpl implements CarbonService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getPrintingCoreIndicators() {
|
|
|
- return null;
|
|
|
+ public ReturnMsg getPrintingCoreIndicators(IocDateParam iocDateParam) {
|
|
|
+ Indeicator indeicator = new Indeicator();
|
|
|
+ List<JSONObject> objects = indeicator.getList();
|
|
|
+ objects.get(0).put("value",10);
|
|
|
+ objects.get(0).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(1).put("value",80);
|
|
|
+ objects.get(1).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(2).put("value",80);
|
|
|
+ objects.get(2).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(3).put("value",80);
|
|
|
+ objects.get(3).put("compare",0.4);
|
|
|
+ indeicator.setWorthAttention("今日人流高峰在9:00/17:00,记得提前做好应对喔");
|
|
|
+ indeicator.setList(objects);
|
|
|
+ return ReturnMsg.ok(indeicator);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getPrintingCostTrend() {
|
|
|
+ public ReturnMsg getPrintingCostTrend(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getConferenceRoomInfo() {
|
|
|
+ public ReturnMsg getConferenceRoomInfo(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getBusCoreIndicators() {
|
|
|
- return null;
|
|
|
+ public ReturnMsg getBusCoreIndicators(IocDateParam iocDateParam) {
|
|
|
+ Indeicator indeicator = new Indeicator();
|
|
|
+ List<JSONObject> objects = indeicator.getList();
|
|
|
+ objects.get(0).put("value",100);
|
|
|
+ objects.get(0).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(1).put("value",80);
|
|
|
+ objects.get(1).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(2).put("value",80);
|
|
|
+ objects.get(2).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(3).put("value",80);
|
|
|
+ objects.get(3).put("compare",0.4);
|
|
|
+ indeicator.setWorthAttention("增加20个公车数量");
|
|
|
+ indeicator.setList(objects);
|
|
|
+ return ReturnMsg.ok(indeicator);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getBusInfo() {
|
|
|
+ public ReturnMsg getBusInfo(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getBusCostTrend() {
|
|
|
+ public ReturnMsg getBusCostTrend(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getFloorCoreIndicators() {
|
|
|
- return null;
|
|
|
+ public ReturnMsg getFloorCoreIndicators(IocDateParam iocDateParam) {
|
|
|
+ Indeicator indeicator = new Indeicator();
|
|
|
+ List<JSONObject> objects = indeicator.getList();
|
|
|
+ objects.get(0).put("value",60);
|
|
|
+
|
|
|
+ objects.get(1).put("value",500);
|
|
|
+ objects.get(1).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(2).put("value",380);
|
|
|
+ objects.get(2).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(3).put("value",80);
|
|
|
+ objects.get(3).put("compare",0.4);
|
|
|
+ objects.add(new JSONObject());
|
|
|
+ objects.get(4).put("value",40);
|
|
|
+ objects.get(4).put("compare",0.4);
|
|
|
+
|
|
|
+ indeicator.setWorthAttention("减少2辆车出行一周");
|
|
|
+ indeicator.setList(objects);
|
|
|
+ return ReturnMsg.ok(indeicator);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getCarbonInfo() {
|
|
|
+ public ReturnMsg getCarbonInfo(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getCarbonQuotaComposition() {
|
|
|
+ public ReturnMsg getCarbonQuotaComposition(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getCarbonNews() {
|
|
|
+ public ReturnMsg getCarbonNews(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getCarbonProportion() {
|
|
|
+ public ReturnMsg getCarbonProportion(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getVehicleCoreIndicators() {
|
|
|
- return null;
|
|
|
+ public ReturnMsg getVehicleCoreIndicators(IocDateParam iocDateParam) {
|
|
|
+ Indeicator indeicator = new Indeicator();
|
|
|
+ List<JSONObject> objects = indeicator.getList();
|
|
|
+ objects.get(0).put("value",60);
|
|
|
+ objects.get(0).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(1).put("value",50);
|
|
|
+ objects.get(1).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(2).put("value",5);
|
|
|
+ objects.get(2).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(3).put("value",80);
|
|
|
+ objects.get(3).put("compare",0.4);
|
|
|
+ indeicator.setWorthAttention("减少2辆车出行一周");
|
|
|
+ indeicator.setList(objects);
|
|
|
+ return ReturnMsg.ok(indeicator);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getVehicleInfo() {
|
|
|
+ public ReturnMsg getVehicleInfo(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getVehicleInfoOrder() {
|
|
|
+ public ReturnMsg getVehicleInfoOrder(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getPrintCoreIndicators() {
|
|
|
- return null;
|
|
|
+ public ReturnMsg getPrintCoreIndicators(IocDateParam iocDateParam) {
|
|
|
+ Indeicator indeicator = new Indeicator();
|
|
|
+ List<JSONObject> objects = indeicator.getList();
|
|
|
+ objects.get(0).put("value",60);
|
|
|
+ objects.get(0).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(1).put("value",50);
|
|
|
+ objects.get(1).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(2).put("value",500);
|
|
|
+ objects.get(2).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(3).put("value",80);
|
|
|
+ objects.get(3).put("compare",0.4);
|
|
|
+ indeicator.setWorthAttention("限制人均每天打印100张以内");
|
|
|
+ indeicator.setList(objects);
|
|
|
+ return ReturnMsg.ok(indeicator);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getPrintInfoOrder() {
|
|
|
+ public ReturnMsg getPrintInfoOrder(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getPrintInfo() {
|
|
|
+ public ReturnMsg getPrintInfo(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getPhotovoltaicInfoOrder() {
|
|
|
+ public ReturnMsg getPhotovoltaicInfoOrder(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getPhotovoltaicInfo() {
|
|
|
+ public ReturnMsg getPhotovoltaicInfo(IocDateParam iocDateParam) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getPhotovoltaicCoreIndicators() {
|
|
|
- return null;
|
|
|
+ public ReturnMsg getPhotovoltaicCoreIndicators(IocDateParam iocDateParam) {
|
|
|
+ Indeicator indeicator = new Indeicator();
|
|
|
+ List<JSONObject> objects = indeicator.getList();
|
|
|
+ objects.get(0).put("value",60);
|
|
|
+ objects.get(0).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(1).put("value",50);
|
|
|
+ objects.get(1).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(2).put("value",500);
|
|
|
+ objects.get(2).put("compare",0.4);
|
|
|
+
|
|
|
+ objects.get(3).put("value",80);
|
|
|
+ objects.get(3).put("compare",0.4);
|
|
|
+ indeicator.setWorthAttention("建议扩大光伏发电面积");
|
|
|
+ indeicator.setList(objects);
|
|
|
+ return ReturnMsg.ok(indeicator);
|
|
|
}
|
|
|
}
|