liulin
2024-07-30 ce04dfcdd664df7e791a63800cab2cd2d12e878c
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.lunhan.xxx.common.util;
 
public class OrderUtil {
 
    public static String getOrderNo(String prefix) {
        SnowFlake idWorker = new SnowFlake(7, 7);
        long id = idWorker.nextId();
        String rechargeOrder = prefix + id;
        return rechargeOrder;
    }
 
 
}