List< Map<String, Object> > mapList = new ArraList<>();
mapList.forEach(list->{
list.forEach((key,value)->{
if (value instanceof Date){
value= DateUtil.format((Date)value,"yyyy-MM-dd HH:mm:ss");
list.put(key,value);
}
if (value instanceof LocalDateTime){
value= DateUtil.format((LocalDateTime)value,"yyyy-MM-dd HH:mm:ss");
list.put(key,value);
}
});
});