mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-29 21:05:14 +08:00
89 lines
2.3 KiB
Java
89 lines
2.3 KiB
Java
package plus.bookshelf.Dao.Mapper;
|
||
|
||
import java.util.List;
|
||
|
||
import org.springframework.stereotype.Repository;
|
||
import plus.bookshelf.Dao.DO.BookDO;
|
||
import plus.bookshelf.Dao.DO.BookDOExample;
|
||
|
||
@Repository // 添加这个注解,Autowired的时候idea就不会报错了
|
||
public interface BookDOMapper {
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table book_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int deleteByPrimaryKey(Integer id);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table book_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int insert(BookDO record);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table book_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int insertSelective(BookDO record);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table book_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
List<BookDO> selectByExampleWithBLOBs(BookDOExample example);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table book_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
List<BookDO> selectByExample(BookDOExample example);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table book_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
BookDO selectByPrimaryKey(Integer id);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table book_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int updateByPrimaryKeySelective(BookDO record);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table book_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int updateByPrimaryKeyWithBLOBs(BookDO record);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table book_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int updateByPrimaryKey(BookDO record);
|
||
|
||
/**
|
||
* 通过用户id获取用户收藏书籍列表
|
||
* @param userId
|
||
* @return
|
||
*/
|
||
BookDO[] selectFavoritesListByUserId(Integer userId);
|
||
} |