java.lang.Integer cannot be cast to java.math.BigDecimal

  Integer  num =(Integer) jsonObject.get("goodsnum");
              BigDecimal price =  new BigDecimal(jsonObject.get("price").toString()) ;
              BigDecimal chetatal=price.multiply(new BigDecimal(num));

 

posted @ 2020-03-13 14:18  ThisCall  阅读(4866)  评论(0编辑  收藏  举报