mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix: fixed issues in gitee #I8NF9T
This commit is contained in:
parent
007fa2bbd1
commit
6d98841d65
@ -32,11 +32,13 @@ public class UpdateEntity {
|
|||||||
|
|
||||||
|
|
||||||
public static <T> T of(Class<T> clazz) {
|
public static <T> T of(Class<T> clazz) {
|
||||||
|
clazz = ClassUtil.getUsefulClass(clazz);
|
||||||
return ModifyAttrsRecordProxyFactory.getInstance().get(clazz);
|
return ModifyAttrsRecordProxyFactory.getInstance().get(clazz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static <T> T of(Class<T> clazz, Object id) {
|
public static <T> T of(Class<T> clazz, Object id) {
|
||||||
|
clazz = ClassUtil.getUsefulClass(clazz);
|
||||||
T newEntity = ModifyAttrsRecordProxyFactory.getInstance().get(clazz);
|
T newEntity = ModifyAttrsRecordProxyFactory.getInstance().get(clazz);
|
||||||
TableInfo tableInfo = TableInfoFactory.ofEntityClass(clazz);
|
TableInfo tableInfo = TableInfoFactory.ofEntityClass(clazz);
|
||||||
List<IdInfo> primaryKeyList = tableInfo.getPrimaryKeyList();
|
List<IdInfo> primaryKeyList = tableInfo.getPrimaryKeyList();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user