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