Browse Source

修改灵敏感知大屏3

main
sjh 1 year ago
parent
commit
6222d0fac8
  1. 2
      src/main/java/com/biutag/supervision/service/RiskStatisticsService.java

2
src/main/java/com/biutag/supervision/service/RiskStatisticsService.java

@ -72,6 +72,7 @@ public class RiskStatisticsService {
RiskStatisticsVo tmp = new RiskStatisticsVo(); RiskStatisticsVo tmp = new RiskStatisticsVo();
tmp.setLabel(map.get("membersName").toString()); tmp.setLabel(map.get("membersName").toString());
Object valueObj = map.get(type); Object valueObj = map.get(type);
if (valueObj != null) {
if (valueObj instanceof Long) { if (valueObj instanceof Long) {
tmp.setValue(((Long) valueObj).intValue()); tmp.setValue(((Long) valueObj).intValue());
} else if (valueObj instanceof BigDecimal) { } else if (valueObj instanceof BigDecimal) {
@ -83,6 +84,7 @@ public class RiskStatisticsService {
} else { } else {
throw new IllegalArgumentException("Unsupported type: " + valueObj.getClass().getName()); throw new IllegalArgumentException("Unsupported type: " + valueObj.getClass().getName());
} }
}
result.add(tmp); result.add(tmp);
} }
if (!result.isEmpty() && result.get(0).getValue() != null) { if (!result.isEmpty() && result.get(0).getValue() != null) {

Loading…
Cancel
Save