|
@@ -1,6 +1,7 @@
|
|
|
package com.persagy.proxy.report.controller;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.map.MapUtil;
|
|
|
import cn.hutool.core.util.ReflectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
@@ -161,6 +162,16 @@ public class AdmReportEquipController {
|
|
|
if(CollUtil.isEmpty(result)){
|
|
|
return AdmResponse.success();
|
|
|
}
|
|
|
+ // 处理一下返回值
|
|
|
+ for (Map<String, Object> objectMap : result) {
|
|
|
+ if (MapUtil.isEmpty(objectMap)){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ objectMap.put("categoryName",objectMap.get("category_name"));
|
|
|
+ objectMap.put("category",objectMap.get("class_code"));
|
|
|
+ objectMap.put("objectType",null);
|
|
|
+ objectMap.put("statistics",new HashMap<>());
|
|
|
+ }
|
|
|
return AdmResponse.success(result);
|
|
|
}
|
|
|
|