| | |
| | | for (int i = 1; i <= 31; i++) { |
| | | if (collect.containsKey(i)) { |
| | | String inspectionResult = ""; |
| | | switch (collect.get(i).getInspectionResult()) { |
| | | case "NORMAL": |
| | | inspectionResult = "√"; |
| | | break; |
| | | case "ANOMALY": |
| | | inspectionResult = "×"; |
| | | break; |
| | | case "FAULT": |
| | | inspectionResult = "△"; |
| | | break; |
| | | case "CLOSE": |
| | | inspectionResult = "T"; |
| | | break; |
| | | if (!StrUtils.isEmpty(collect.get(i).getInspectionResult())) { |
| | | switch (collect.get(i).getInspectionResult()) { |
| | | case "NORMAL": |
| | | inspectionResult = "√"; |
| | | break; |
| | | case "ANOMALY": |
| | | inspectionResult = "×"; |
| | | break; |
| | | case "FAULT": |
| | | inspectionResult = "△"; |
| | | break; |
| | | case "CLOSE": |
| | | inspectionResult = "T"; |
| | | break; |
| | | } |
| | | } |
| | | resultMap.put("inspectionResult" + i, inspectionResult); |
| | | } else { |
| | |
| | | for (int i = 1; i <= 5; i++) { |
| | | if (collect.containsKey(i)) { |
| | | String inspectionResult = ""; |
| | | switch (collect.get(i).getInspectionResult()) { |
| | | case "NORMAL": |
| | | inspectionResult = "√"; |
| | | break; |
| | | case "ANOMALY": |
| | | inspectionResult = "×"; |
| | | break; |
| | | case "FAULT": |
| | | inspectionResult = "△"; |
| | | break; |
| | | case "CLOSE": |
| | | inspectionResult = "T"; |
| | | break; |
| | | if (!StrUtils.isEmpty(collect.get(i).getInspectionResult())) { |
| | | switch (collect.get(i).getInspectionResult()) { |
| | | case "NORMAL": |
| | | inspectionResult = "√"; |
| | | break; |
| | | case "ANOMALY": |
| | | inspectionResult = "×"; |
| | | break; |
| | | case "FAULT": |
| | | inspectionResult = "△"; |
| | | break; |
| | | case "CLOSE": |
| | | inspectionResult = "T"; |
| | | break; |
| | | } |
| | | } |
| | | resultMap.put("inspectionResult" + i, inspectionResult); |
| | | } else { |