mybatis-generator生成的mapper中的

int updateByExampleSelective(@Param("record") Shop record, @Param("example") ShopExample example);

int updateByExample(@Param("record") Shop record, @Param("example") ShopExample example);//第一个参数,是需要更改的数据,第二个是更改的条件,通过给ShopExample类中Criteria类的实例中添加的条件来更新。通过Criteria制定id==XX >XX...

int updateByPrimaryKeySelective(Shop record);//指定某primarykey的记录选择性的更新某些给出的字段,null的字段更改

int updateByPrimaryKey(Shop record); // 指定某primaryKey的记录更新
posted @ 2017-05-24 15:42  乔胖胖  阅读(165)  评论(0编辑  收藏  举报