java从Object类型转换为double类型:
Map<String,Object> map = new HashMap<String,Object>();
map.put("order",1.245);
BigDecimal order = (BigDecimal)map.get("order");
double d = (order==null?0:order.doubleValue());
2022-11-19 10:35:53
java从Object类型转换为double类型:
Map<String,Object> map = new HashMap<String,Object>();
map.put("order",1.245);
BigDecimal order = (BigDecimal)map.get("order");
double d = (order==null?0:order.doubleValue());