Commit 0946be07 authored by yanzg's avatar yanzg

Excel导出功能

parent 71057ec7
......@@ -6,6 +6,7 @@ import java.util.UUID;
/**
* 随机码生成工具
* @author 颜佐光
*/
public final class RandomHelper {
......@@ -19,6 +20,8 @@ public final class RandomHelper {
private static final int RANDOM_CHARSET_LEN = RANDOM_CHARSET.length();
private static final int RANDOM_SIZE = 6;
/**
* 得到32位随机码
*
......@@ -44,7 +47,7 @@ public final class RandomHelper {
*/
public static String generateRandomCodeSix() {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < 6; i++) {
for (int i = 0; i < RANDOM_SIZE; i++) {
sb.append(generateRandomCodeOne(RANDOM_CHARSET, RANDOM_CHARSET_LEN));
}
return sb.toString();
......
......@@ -22,6 +22,7 @@ import java.util.UUID;
/**
* 上传文件,下载文件操作类
* @author 颜佐光
*/
public final class WebFileHelper {
......
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