仅作记录:
String sql = "";
List<Map<String, Object>> grabList = runSQL.executeMap(sql);
遍历集合得到: 时间戳
Timestamp createAt = (Timestamp) map.get("createAt");
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
String format
=Instant.ofEpochMilli(createAt.getTime()).atZone(ZoneOffset.ofHours(8)).format(formatter);
format 即为所得
··· 省略大部分代码···