public interface EmployeeMapper { int deleteByPrimaryKey(Long id); int insert(Employee entity); Employee selectByPrimaryKey(Long id); List> selectAll(); int updateByPrimaryKey(Employee entity); }
/** * 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> 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); }