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

为什么我在测试AppointmentDao的时候,返回book的时候,bookId是1000,但是name和number是null? #44

Open
nicenice0316 opened this issue Aug 2, 2018 · 3 comments

Comments

@nicenice0316
Copy link

但是我手动将xml里面的sql去查询的时候,是有返回值的

@Draymonder
Copy link

resultType 检查没有

@nicenice0316
Copy link
Author

nicenice0316 commented Aug 2, 2018

和这个例子一模一样,除了把book表里面的name和number换成b_name,b_number
@Draymonder

@Draymonder
Copy link

Draymonder commented Aug 2, 2018

实体类属性和表字段要一致才行,如果不一致需要配置resultMap.类似:


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