|
@@ -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");
|
|
|
}
|
|
|
|
|
|
}
|