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

新增数据库建表sql,并对config.properties添加注释 #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

qjkobe
Copy link

@qjkobe qjkobe commented Jul 26, 2016

后期我可能还会给selectByCountry添加一个order参数,用来顺序或者逆序排序。
另外,这个项目有很多值得学习的地方,我以前只会在mapper里写动态sql,然后外面调用。这个项目里虽然也写了动态sql,不过没有用到,而是在Service的实现中使用了Example.Criteria来实现动态查询。我感觉我对MyBatis的理解还是太浅了,希望以后能跟随着你的博客一直进步!谢谢了

@abel533
Copy link
Owner

abel533 commented Jul 26, 2016

https://github.com/abel533/Mybatis-Spring/blob/master/src/main/resources/test.sql

项目中有SQL,并且还有数据。

另外config.properties中增加注释时尽可能不要修改配置信息,每个人的都不一样。

你在看看,可以增加例子或者继续完善,然后PR,谢谢~

@qjkobe
Copy link
Author

qjkobe commented Jul 27, 2016

增加了动态排序功能,可以根据某字段升序或者降序。
那个分页插件确实好用!
两个commit,第二个就是把我自己的sql删除了,并且把配置文件恢复成了原来的样子

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

Successfully merging this pull request may close these issues.

2 participants