master
parent
315b1cc89d
commit
b0974ef94b
@ -0,0 +1 @@
|
|||||||
|
INSERT INTO `user_list` VALUES ('admin1', 'admin1', 1);
|
@ -1,4 +1,5 @@
|
|||||||
1.每次写之前先拉取 git pull origin master
|
1.每次写之前先拉取 git pull origin master
|
||||||
2.写了就git add .
|
2.写了就git add .
|
||||||
3.git commit -m "当前是第几次提交就写几,总次数"
|
3.git commit -m "当前是第几次提交就写几,总次数"
|
||||||
4.git push origin master
|
4.git push origin master
|
||||||
|
|
||||||
|
@ -1,10 +1,23 @@
|
|||||||
package com.book.demo.mapper;
|
package com.book.demo.mapper;
|
||||||
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import com.book.demo.entity.Book;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Mapper
|
@Mapper
|
||||||
@Repository
|
@Repository
|
||||||
public interface BookMapper {
|
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);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue