随笔分类 -  通用mapper对单表的操作

通用mapper中selectByExample,selectByPrimaryKey和select的区别
摘要:1 selectByExample几乎可以解决所有的查询,select和selectByPrimary是简化的针对特定情况的解决方法 2 以主键为条件进行查询, selectByExample的代码如下: Example example = new Example(Stock.class); exa 阅读全文
posted @ 2018-11-30 17:18 supress_Elon_Musk 阅读(39746) 评论(0) 推荐(1) 编辑


点击右上角即可分享
微信分享提示