小凡156

博客园 首页 新随笔 联系 订阅 管理

2019年10月16日 #

摘要: dto.getAmount() 是long类型,需要先转成BigDecimal 再计算 BigDecimal amount = dto.getAmount()!=null? new BigDecimal(dto.getAmount()).divide(new BigDecimal(1000),2,R 阅读全文
posted @ 2019-10-16 20:01 小凡156 阅读(1340) 评论(0) 推荐(0) 编辑