fix 修复自定义mybaits-plus的主键生成器bug

master
管理员 1 year ago
parent c6d2dc78ac
commit 42408657be

@ -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);
}
@Override
public String nextUUID(Object entity) {
if(ObjUtil.isNull(entity)){
return IdUtils.nextDateId(17);
}
return IdUtils.nextDateId(entity.getClass().getSimpleName(), 17);
}
};

Loading…
Cancel
Save