代码更新
This commit is contained in:
@@ -309,7 +309,7 @@ public class InfluxDBResultMapperCn {
|
||||
if (String.class.isAssignableFrom(fieldType)) {
|
||||
if("timeId".equals(field.getName()) || "time".equals(field.getName())){
|
||||
LocalDateTime localDateTime = LocalDateTime.ofInstant(Instant.from(DateTimeFormatter.ISO_DATE_TIME.parse(String.valueOf(value))), ZoneId.systemDefault());
|
||||
String time = localDateTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
String time = localDateTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS"));
|
||||
field.set(object,time);
|
||||
}else {
|
||||
field.set(object, String.valueOf(value));
|
||||
|
||||
Reference in New Issue
Block a user