public static Long toTimestamp(Date date) {

        if (date == null) {
            return null;
        }
        return date.getTime();
    }
@author Robert HG (254963746@qq.com) on 3/8/16.
lts-core/src/main/java/com/github/ltsopensource/store/jdbc/dbutils/JdbcTypeUtils.java