|
|
|
|
@ -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) { |
|
|
|
|
|