Commit bb6dbc52 authored by 曲欣红's avatar 曲欣红

1

parent ad14e341
......@@ -10,6 +10,7 @@ import java.io.UnsupportedEncodingException;
import java.io.Writer;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
......@@ -1137,4 +1138,9 @@ public class StringUtil {
return filePath.matches("^.+\\.(?i)(xlsx)$");
}
public static String getRandomNum(){
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
return sdf.format(new Date())+StringUtil.getRandom(4);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment