You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
559 B
24 lines
559 B
package com.book.demo.mapper;
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Select;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import com.book.demo.entity.Book;
|
|
import java.util.List;
|
|
|
|
@Mapper
|
|
@Repository
|
|
public interface BookMapper {
|
|
|
|
@Select("select * from book_list where classify=#{classify}")
|
|
Book[] getBooksByKind(String kind);
|
|
|
|
@Select("select * from book_list")
|
|
Book[] getAll();
|
|
@Select("select * from book_list where bookname=#{bookname}")
|
|
Book[] searchBooks(String bookname);
|
|
|
|
|
|
}
|