地质所 沉降监测网建设项目
zmk
2024-05-18 306749fa2e6ea7609468889cb56473770d0a26cc
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();
    }
}