|
@@ -115,6 +115,7 @@ public class NumberUtils {
|
115
|
115
|
* 获取指定位数的随机位
|
116
|
116
|
* @param length
|
117
|
117
|
* @return
|
|
118
|
+ * 1555319231
|
118
|
119
|
*/
|
119
|
120
|
public static String getRandom(int length){
|
120
|
121
|
return (int)((Math.random()*9+1)*Math.pow(10,length-1))+"";
|
|
@@ -127,7 +128,7 @@ public class NumberUtils {
|
127
|
128
|
addNum=0;
|
128
|
129
|
runDate=now;
|
129
|
130
|
}
|
130
|
|
- return "1555319231"+runDate.getYear()+""+runDate.getMonthValue()+""+runDate.getDayOfMonth()+getDbNum()+getAddNum()+getRandom(4);
|
|
131
|
+ return "1703331958"+runDate.getYear()+""+runDate.getMonthValue()+""+runDate.getDayOfMonth()+getDbNum()+getAddNum()+getRandom(4);
|
131
|
132
|
}
|
132
|
133
|
|
133
|
134
|
}
|