From 119139c671e1c803f1a7a0ff0afad341de8d6c35 Mon Sep 17 00:00:00 2001 From: Kurisu Date: Fri, 23 Oct 2020 10:53:38 +0800 Subject: [PATCH] :construction: 跟进池接口调整 --- fw-valhalla-server/src/main/java/cn/fw/valhalla/converter/Timestamp2LocalDateConverter.java | 30 ------------------------------ 1 file changed, 0 insertions(+), 30 deletions(-) delete mode 100644 fw-valhalla-server/src/main/java/cn/fw/valhalla/converter/Timestamp2LocalDateConverter.java diff --git a/fw-valhalla-server/src/main/java/cn/fw/valhalla/converter/Timestamp2LocalDateConverter.java b/fw-valhalla-server/src/main/java/cn/fw/valhalla/converter/Timestamp2LocalDateConverter.java deleted file mode 100644 index c22a315..0000000 --- a/fw-valhalla-server/src/main/java/cn/fw/valhalla/converter/Timestamp2LocalDateConverter.java +++ /dev/null @@ -1,30 +0,0 @@ -package cn.fw.valhalla.converter; - -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.lang3.math.NumberUtils; -import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; -import org.springframework.core.convert.converter.Converter; -import org.springframework.lang.Nullable; -import org.springframework.stereotype.Component; - -import java.time.Instant; -import java.time.LocalDate; -import java.time.ZoneId; - -/** - * create at 2020-10-19 - * - * @author kurisu - */ -@Component -@ConfigurationPropertiesBinding -public class Timestamp2LocalDateConverter implements Converter { - @Override - @Nullable - public LocalDate convert(@Nullable final String value) { - if (StringUtils.isNotBlank(value) && NumberUtils.isDigits(value)) { - return Instant.ofEpochMilli(NumberUtils.toLong(value)).atZone(ZoneId.systemDefault()).toLocalDate(); - } - return null; - } -} -- libgit2 0.22.2