Commit 8ddc584375768a50dfb3e58022569f46a7265cee
1 parent
f451b17a76
Exists in
master
and in
1 other branch
部分首页统计bug
Showing 1 changed file with 1 additions and 1 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/IndexServiceImpl.java
View file @
8ddc584
| ... | ... | @@ -39,7 +39,7 @@ |
| 39 | 39 | // 科室类别占比 |
| 40 | 40 | List<Map<String,Object>> dLst=indexMapper.getDepart(); |
| 41 | 41 | rs.put("depart",dLst); |
| 42 | - rs.put("departCnt",dLst.stream().mapToInt(m-> (int) m.get("cnt")).sum()); | |
| 42 | + rs.put("departCnt",dLst.stream().mapToInt(m-> Math.toIntExact((long) m.get("cnt"))).sum()); | |
| 43 | 43 | |
| 44 | 44 | |
| 45 | 45 |