清洗list
try {
// 创建NumberFormat实例
NumberFormat nf = NumberFormat.getInstance();
// 禁用分组,这样就不会有逗号分隔符
nf.setGroupingUsed(false);
// 遍历List中的每个Map
for (Map<String, Object> map : list) {
// 遍历Map中的每个键值对
for (Map.Entry<String, Object> entry : map.entrySet()) {
if(entry.getValue()==null){
entry.setValue("");
}
}
}
} catch (Exception exception) {
exception.printStackTrace();
}

浙公网安备 33010602011771号