Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【建议】新增:Record转T类型方法 #1574

Closed
lmm1990 opened this issue Feb 25, 2021 · 2 comments
Closed

【建议】新增:Record转T类型方法 #1574

lmm1990 opened this issue Feb 25, 2021 · 2 comments

Comments

@lmm1990
Copy link

lmm1990 commented Feb 25, 2021

临时解决办法:
自己写了个util

使用方法:
Entity entity = NutzEntityUtil.getEntity(UserInfo.class);
Record result = userService.get(id,"id,nickName");
UserInfo userInfo = entity.getObject(result);

附件:
NutzEntityUtil.java.txt

@threefish
Copy link
Member

Lang.map2Object(record, UserInfo.class);
就可以了

@lmm1990
Copy link
Author

lmm1990 commented Feb 25, 2021

好的,多谢

@lmm1990 lmm1990 closed this as completed Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants