oracle在获取首页的统计时,获取的类型是BigDecimal 转换成long类型失败

//  如标题,转换失败
.map(obj -> (Long) obj)




//修改如下

.map(obj -> { if (obj instanceof BigDecimal) { return ((BigDecimal) obj).longValue(); } return (Long) obj; })

 

posted @ 2020-06-17 09:43  夏末、初秋  阅读(684)  评论(0编辑  收藏  举报