之前用的uuid都是32位的varchar类型,这次要求插入的uuid为20位bigint类型
之前的uuid生成方式
@SelectKey(keyProperty = "id",resultType = String.class, before = true,
statement = "select replace(uuid(), '-', '')")
@Options(keyProperty = "ID", useGeneratedKeys = true)
之前用的uuid都是32位的varchar类型,这次要求插入的uuid为20位bigint类型
之前的uuid生成方式
@SelectKey(keyProperty = "id",resultType = String.class, before = true,
statement = "select replace(uuid(), '-', '')")
@Options(keyProperty = "ID", useGeneratedKeys = true)
https://blog.csdn.net/zhongkelee/article/details/52289163
public BigInteger(String val) 将一个字符串变成BigInteger类型的数据