tj
2025-06-05 2d549a04870d1315868a7cf19952b64e8071e711
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.cloudroam.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudroam.model.BookDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
/**
 * @author 
 * 图书mapper接口
 */
@Repository
public interface BookMapper extends BaseMapper<BookDO> {
 
    /**
     * 根据标题模糊查询图书列表
     * @param q 查询关键字
     * @return 图书数据对象列表
     */
    List<BookDO> selectByTitleLikeKeyword(@Param("q") String q);
 
    /**
     * 根据标题查询图书列表
     * @param title 图书标题
     * @return 图书数据对象列表
     */
    List<BookDO> selectByTitle(@Param("title") String title);
}