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

Loading…
Cancel
Save