Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
后期我可能还会给selectByCountry添加一个order参数,用来顺序或者逆序排序。
另外,这个项目有很多值得学习的地方,我以前只会在mapper里写动态sql,然后外面调用。这个项目里虽然也写了动态sql,不过没有用到,而是在Service的实现中使用了Example.Criteria来实现动态查询。我感觉我对MyBatis的理解还是太浅了,希望以后能跟随着你的博客一直进步!谢谢了