Levi.u 4 жил өмнө
parent
commit
8395143320

+ 7 - 0
src/main/java/com/ebei/screen/service/EbaSystemService.java

@@ -28,6 +28,7 @@ public interface EbaSystemService {
 
     /**
      * 根据项目id获取所有iot信息
+     *
      * @param projectId
      */
     void getIotList(Long projectId);
@@ -59,18 +60,21 @@ public interface EbaSystemService {
 
     /**
      * 根据deviceId和deviceParamId获取实时device信息
+     *
      * @param deviceParams
      */
     void getMobjectRealDataList(List<Map<String, Integer>> deviceParams);
 
     /**
      * 根据projectId获取所有实时device信息
+     *
      * @param projectId
      */
     void getMobjectRealDataByProjectIdList(Long projectId);
 
     /**
      * 根据deviceId和deviceParamId获取某段时间内设备能耗数据
+     *
      * @param deviceId
      * @param deviceParameterId
      * @param beginTime
@@ -80,6 +84,7 @@ public interface EbaSystemService {
 
     /**
      * 根据项目id获取实时未恢复告警
+     *
      * @param projectId
      */
     void getMobjectRealTimeAlarmList(Long projectId);
@@ -91,12 +96,14 @@ public interface EbaSystemService {
 
     /**
      * 根据iotId获取摄像头地址
+     *
      * @param IotId
      */
     void getIotVideoUrl(Long IotId);
 
     /**
      * 根据项目id获取iot实时告警列表
+     *
      * @param projectId
      */
     void getIotAlarmRealTimeList(Long projectId);

+ 0 - 1
src/main/java/com/ebei/screen/service/EnergyPlatformService.java

@@ -7,6 +7,5 @@ package com.ebei.screen.service;
  */
 public interface EnergyPlatformService {
 
-
     void apiClientBoxGrouped();
 }

+ 14 - 14
src/main/java/com/ebei/screen/service/impl/EbaSystemServiceImpl.java

@@ -48,98 +48,98 @@ public class EbaSystemServiceImpl implements EbaSystemService {
     public void getMobjectList(Long projectId) {
         List<Map> mobjectList = EbaUtils.getMobjectList(projectId);
         mongoTemplate.dropCollection("mobjectList");
-        mongoTemplate.insert(mobjectList,"mobjectList");
+        mongoTemplate.insert(mobjectList, "mobjectList");
     }
 
     @Override
     public void getIotList(Long projectId) {
         List<Map> iotList = EbaUtils.getIotList(projectId);
         mongoTemplate.dropCollection("iotList");
-        mongoTemplate.insert(iotList,"iotList");
+        mongoTemplate.insert(iotList, "iotList");
     }
 
     @Override
     public void getDeviceSystemList() {
         List<Map> deviceSystemList = EbaUtils.getDeviceSystemList();
         mongoTemplate.dropCollection("deviceSystemList");
-        mongoTemplate.insert(deviceSystemList,"deviceSystemList");
+        mongoTemplate.insert(deviceSystemList, "deviceSystemList");
     }
 
     @Override
     public void getDeviceTypeList() {
         List<Map> deviceTypeList = EbaUtils.getDeviceTypeList();
         mongoTemplate.dropCollection("deviceTypeList");
-        mongoTemplate.insert(deviceTypeList,"deviceTypeList");
+        mongoTemplate.insert(deviceTypeList, "deviceTypeList");
     }
 
     @Override
     public void getDeviceParamList() {
         List<Map> deviceParamList = EbaUtils.getDeviceParamList();
         mongoTemplate.dropCollection("deviceParamList");
-        mongoTemplate.insert(deviceParamList,"deviceParamList");
+        mongoTemplate.insert(deviceParamList, "deviceParamList");
     }
 
     @Override
     public void getDeviceAlarmTypeList() {
         List<Map> deviceAlarmTypeList = EbaUtils.getDeviceAlarmTypeList();
         mongoTemplate.dropCollection("deviceAlarmTypeList");
-        mongoTemplate.insert(deviceAlarmTypeList,"deviceAlarmTypeList");
+        mongoTemplate.insert(deviceAlarmTypeList, "deviceAlarmTypeList");
     }
 
     @Override
     public void getFireDeviceTypeList() {
         List<Map> fireDeviceTypeList = EbaUtils.getFireDeviceTypeList();
         mongoTemplate.dropCollection("fireDeviceTypeList");
-        mongoTemplate.insert(fireDeviceTypeList,"fireDeviceTypeList");
+        mongoTemplate.insert(fireDeviceTypeList, "fireDeviceTypeList");
     }
 
     @Override
     public void getMobjectRealDataList(List<Map<String, Integer>> deviceParams) {
         List<Map> mobjectRealDataList = EbaUtils.getMobjectRealDataList(deviceParams);
         mongoTemplate.dropCollection("mobjectRealDataList");
-        mongoTemplate.insert(mobjectRealDataList,"mobjectRealDataList");
+        mongoTemplate.insert(mobjectRealDataList, "mobjectRealDataList");
     }
 
     @Override
     public void getMobjectRealDataByProjectIdList(Long projectId) {
         List<Map> dataByProjectIdList = EbaUtils.getMobjectRealDataByProjectIdList(projectId);
         mongoTemplate.dropCollection("dataByProjectIdList");
-        mongoTemplate.insert(dataByProjectIdList,"dataByProjectIdList");
+        mongoTemplate.insert(dataByProjectIdList, "dataByProjectIdList");
     }
 
     @Override
     public void getMobjectEnergyList(Long deviceId, Long deviceParameterId, Long beginTime, Long endTime) {
         List<Map> mobjectEnergyList = EbaUtils.getMobjectEnergyList(deviceId, deviceParameterId, beginTime, endTime);
         mongoTemplate.dropCollection("mobjectEnergyList");
-        mongoTemplate.insert(mobjectEnergyList,"mobjectEnergyList");
+        mongoTemplate.insert(mobjectEnergyList, "mobjectEnergyList");
     }
 
     @Override
     public void getMobjectRealTimeAlarmList(Long projectId) {
         List<Map> mobjectRealTimeAlarmList = EbaUtils.getMobjectRealTimeAlarmList(projectId);
         mongoTemplate.dropCollection("mobjectRealTimeAlarmList");
-        mongoTemplate.insert(mobjectRealTimeAlarmList,"mobjectRealTimeAlarmList");
+        mongoTemplate.insert(mobjectRealTimeAlarmList, "mobjectRealTimeAlarmList");
     }
 
     @Override
     public void getMobjectHisAlarmPageList(Long projectId, Long beginTime, Long endTime, Integer pageIndex, Integer pageSize) {
         List<Map> mobjectHisAlarmPageList = EbaUtils.getMobjectHisAlarmPageList(projectId, beginTime, endTime, pageIndex, pageSize);
         mongoTemplate.dropCollection("mobjectHisAlarmPageList");
-        mongoTemplate.insert(mobjectHisAlarmPageList,"mobjectHisAlarmPageList");
+        mongoTemplate.insert(mobjectHisAlarmPageList, "mobjectHisAlarmPageList");
     }
 
     @Override
     public void getIotVideoUrl(Long IotId) {
         List<Map> iotVideoUrl = EbaUtils.getIotVideoUrl(IotId);
         mongoTemplate.dropCollection("iotVideoUrl");
-        mongoTemplate.insert(iotVideoUrl,"iotVideoUrl");
+        mongoTemplate.insert(iotVideoUrl, "iotVideoUrl");
     }
 
     @Override
     public void getIotAlarmRealTimeList(Long projectId) {
         List<Map> iotAlarmRealTimeList = EbaUtils.getIotAlarmRealTimeList(projectId);
         mongoTemplate.dropCollection("iotAlarmRealTimeList");
-        mongoTemplate.insert(iotAlarmRealTimeList,"iotAlarmRealTimeList");
+        mongoTemplate.insert(iotAlarmRealTimeList, "iotAlarmRealTimeList");
     }
 
 }