浏览代码

fix : 质量报告bug测试

lvxianyun 3 年之前
父节点
当前提交
83916138f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/persagy/proxy/report/controller/AdmReportEquipController.java

+ 1 - 1
src/main/java/com/persagy/proxy/report/controller/AdmReportEquipController.java

@@ -1042,7 +1042,7 @@ public class AdmReportEquipController {
                 }
 
                 ObjectNode infos = (ObjectNode) objectNode.get("infos");
-                if (!JSONUtil.isNull(infos)) {
+                if (!JSONUtil.isNull(infos) && !infos.toString().equals("{}")) {
                     Map<String, Object> dynamic = calculateInfoPoints(infos.toString(), objectNode.get("classCode").textValue(), dynamicInfoPointCodes);
                     Map<String, Object> staticMap = calculateInfoPoints(infos.toString(), objectNode.get("classCode").textValue(), staticInfoPointCodes);
                     dynamicInfoPoint += Integer.parseInt(dynamic.get("counts").toString());