地质所 沉降监测网建设项目
zmk
2024-05-16 6cc8b13ee47303a907f8e57b018406c46d8928e4
1
2
3
4
5
6
7
8
9
10
11
12
package com.javaweb.common.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
 
public class Guid {
    public static String get() {
        StringBuffer now = new StringBuffer(new SimpleDateFormat(
                "yyyyMMddHHmmssSSS").format(new Date()));
        int n = (int) (Math.random() * 90000.0D + 10000.0D);
        return now.append(n).toString();
    }
}