borrowservice.java
来自「实现图书的借阅和管理信息化」· Java 代码 · 共 105 行
JAVA
105 行
package com.moonman.libraryManager.model.service;
import java.util.List;
import com.moonman.libraryManager.model.vo.Books;
import com.moonman.libraryManager.model.vo.Borrow;
import com.moonman.libraryManager.model.vo.Punish;
import com.moonman.libraryManager.model.vo.Store;
public interface BorrowService {
/**
* 添加一个预约
*
* @param borrow
* @return
*/
boolean addBorrow(Borrow borrow);
/**
* 删除一条图书借阅记录
*
* @param borrowId
* @return
*/
boolean deleteBorrowByBorrowId(String borrowId);
/**
* 根据读者编号查询读者借书记录
*
* @param readerId
* @return
*/
List<Object[]> getStoresByReaderId(String readerId);
/**
* 根据读者编号查询读者的信息
*
* @param readerId
* @return
*/
List<Borrow> getBooksByReaderId(String readerId);
/**
* 根据索取号获得官藏信息
*
* @param sqh
* @return
*/
Borrow getStoreBySqh(Integer sqh);
/**
* 根据用户编号和索取号查询用户的交易信息
*
* @param readerId
* @param sqh
* @return
*/
Borrow getBorrowByReaderIdAndSqh(Integer readerId, Integer sqh);
/**
* 更新借阅信息的状态
*
* @param borrow
* @return
*/
boolean modifyBorrowByBorrow(Borrow borrow);
/**
* 根据读者编号和借阅状态查询读者的信息
*
* @param readerId
* @param 图书状态
* @return
*/
List<Borrow> getBorrowsByReaderIdAndStatus(Integer readerId, Integer stauts);
/**
* 根据用户编号和索取号,状态查询用户的交易信息
*
* @param readerId
* @param sqh
* @return
*/
Borrow getBorrowByReaderIdAndSqh(Integer readerId, Integer sqh,
Integer status);
/**
* 添加一条罚款消息
*
* @param punish
* 罚款实体
* @return
*/
boolean addPunish(Punish punish);
/**
* 根据索取号码删除图书的信息
*
* @param sqh
* 索取号码
* @return 是否删除成功
*/
boolean deleteBorrowBySqh(String sqh);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?