@ -100,11 +100,17 @@ public class MybatisPlusConfig {
@Override
public Number nextId(Object entity) {
if(ObjUtil.isNull(entity)){
return IdUtils.nextDateIdLong(17);
}
return IdUtils.nextDateIdLong(entity.getClass().getSimpleName(), 17);
public String nextUUID(Object entity) {
return IdUtils.nextDateId(17);
return IdUtils.nextDateId(entity.getClass().getSimpleName(), 17);
};