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

自动生成的 dao 和 BaseServiceImpl 有些情况不匹配 #59

Closed
yangpeng366 opened this issue Jul 11, 2017 · 0 comments
Closed

自动生成的 dao 和 BaseServiceImpl 有些情况不匹配 #59

yangpeng366 opened this issue Jul 11, 2017 · 0 comments

Comments

@yangpeng366
Copy link

yangpeng366 commented Jul 11, 2017

表字段主键 id(bigint 20);自动生成的对应属性是Long;
dao方法是selectByPrimaryKey(Long id);执行servce通过Id查询的时候,传递参数int型的,然后
BaseServiceImpl selectByPrimaryKey 里 220行 Method selectByPrimaryKey = apper.getClass().getDeclaredMethod("selectByPrimaryKey", id.getClass());报错 java.lang.NoSuchMethodError:
后来就没有用BaseServiceImpl ,跳过了这个bug

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

1 participant