fix IJPACommData

V0.5.x
jay 2023-06-05 18:24:03 +08:00
parent c2034bc6fc
commit ece079137b
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public interface IJPACommData< T extends Id<ID>, ID> extends ICommonData<T , ID
Optional one = getBaseRepository().findOne(example);
if(one.isPresent()){
MapstructUtils.convert(one.get(), getTClass());
return (T) MapstructUtils.convert(one.get(), getTClass());
}
return null;
}