Browse Source

设备分析异常

develop
wangsixiang 4 months ago
parent
commit
3b92333417
  1. 4
      zc-business/src/main/java/com/zc/business/controller/DcDeviceController.java

4
zc-business/src/main/java/com/zc/business/controller/DcDeviceController.java

@ -985,6 +985,7 @@ public class DcDeviceController extends BaseController {
props.put("sorts[0].name", "timestamp"); props.put("sorts[0].name", "timestamp");
List<HashMap<String, Object>> mapList = dcDeviceService.selectDeviceParameterProperties(dcDevice);//属性的参数信息 List<HashMap<String, Object>> mapList = dcDeviceService.selectDeviceParameterProperties(dcDevice);//属性的参数信息
List<HashMap> resultsMapValue = new ArrayList<>(); List<HashMap> resultsMapValue = new ArrayList<>();
try {
for (HashMap<String, Object> hashMap : mapList) { for (HashMap<String, Object> hashMap : mapList) {
HashMap<String, Object> resultsMap = new HashMap<>(); HashMap<String, Object> resultsMap = new HashMap<>();
String name = hashMap.get("name").toString();//属性名称 String name = hashMap.get("name").toString();//属性名称
@ -1042,6 +1043,9 @@ public class DcDeviceController extends BaseController {
} }
resultsMapValue.add(resultsMap); resultsMapValue.add(resultsMap);
} }
}catch (Exception e){
e.printStackTrace();
}
return AjaxResult.success(resultsMapValue); return AjaxResult.success(resultsMapValue);
} }

Loading…
Cancel
Save