Map map = new HashMap<>();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String startStr = sdf.format(start);
String endStr = sdf.format(end);
map.put("startTs", Timestamp.valueOf(startStr));
map.put("endTs", Timestamp.valueOf(endStr));
复制