updateByExample: 对注入的字段全部更新,为null的字段更新为null。updateByExampleSelective: 对字段进行判断再更新,如果更新的字段中有null,忽略更新该字段,该字段
原创 2019-08-23 11:10:27
6740阅读
这里写目录标题一、mapper接口中的方法二、example实例三、方法示例1.统计数量:countByExample2.查询数据:selectByExample和 selectByPrimaryKey3.插入数据 :insert,insertSelective4.更新数据: updateByExample和updateByExampleSelective,updateByPrimaryKey和