xin
2025-05-30 b394df082b875856884d6d02cce2a43c49ad6704
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.oying.modules.pc.common.id;
 
import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.stereotype.Component;
 
@Component
public class StoreQualificationIdGenerator {
 
    private static final Snowflake snowflake = IdUtil.getSnowflake(1,1);
 
    public static long getId() {
        return snowflake.nextId();
    }
}