|
|
|
@ -27,6 +27,10 @@ public class MultiDateDeserializer extends JsonDeserializer<Date> { |
|
|
|
public Date deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { |
|
|
|
String text = p.getText().trim(); |
|
|
|
|
|
|
|
if (text.isEmpty()) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
// ① 如果是纯数字 → 按时间戳处理
|
|
|
|
if (text.matches("^\\d+$")) { |
|
|
|
long t = Long.parseLong(text); |
|
|
|
|