先贴个逆向工程出来的mapper
/**
* Created by Mybatis Generator 2018/07/15 14:14
*/
public interface EmployeeMapper {
long countByExample(EmployeeExample example);
int deleteByExample(EmployeeExample example);
int deleteByPrimaryKey(Long id);
int insert(Employee entity);
int insertSelective(Employee entity);
List<Employee> selectByExample(EmployeeExample example);
Employee selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Employee record, @Param("example") EmployeeExample example);
int updateByExample(@Param("record") Employee record, @Param("example") EmployeeExample example);
int updateByPrimaryKeySelective(Employee entity);
int updateByPrimaryKey(Employee entity);
}
想知道这些多出来的方法有什么用吗 ? 想要花一分钟学会这个骚操作吗 , 点下面链接直达教程哈哈哈
赞美李哥
https://www.jianshu.com/p/0155be036298