|
@@ -111,10 +111,15 @@ public class DataChange {
|
|
|
for (Map<String, Object> map : list) {
|
|
|
for (String s : key) {
|
|
|
//修改数据为带两位小数
|
|
|
- BigDecimal oldDate = (BigDecimal) map.get(s);
|
|
|
- DecimalFormat df = new DecimalFormat("0.00");
|
|
|
- String resultDeduction = df.format(oldDate.doubleValue());
|
|
|
- map.put(s, resultDeduction);
|
|
|
+ try {
|
|
|
+ BigDecimal oldDate = (BigDecimal) map.get(s);
|
|
|
+ DecimalFormat df = new DecimalFormat("0.00");
|
|
|
+ String resultDeduction = df.format(oldDate.doubleValue());
|
|
|
+ map.put(s, resultDeduction);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|