⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 borrowdao.java

📁 实现图书的借阅和管理信息化
💻 JAVA
字号:
package com.moonman.libraryManager.model.dao;

import java.util.List;

import com.moonman.libraryManager.model.vo.Borrow;
import com.moonman.libraryManager.model.vo.Punish;

public interface BorrowDAO {
	/**
	 * 添加一个预约
	 * 
	 * @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 readerId
	 * @param sqh
	 * @return
	 */
	Borrow getBorrowByReaderIdAndSqh(Integer readerId, Integer sqh,
			Integer status);

	/**
	 * 更新借阅信息的状态
	 * 
	 * @param borrow
	 * @return
	 */
	boolean modifyBorrowByBorrow(Borrow borrow);

	/**
	 * 根据读者编号和借阅状态查询读者的信息
	 * 
	 * @param readerId
	 * @param 图书状态
	 * @return
	 */
	List<Borrow> getBorrowsByReaderIdAndStatus(Integer readerId, Integer stauts);

	/**
	 * 添加一条罚款消息
	 * 
	 * @param punish
	 *            罚款实体
	 * @return
	 */
	boolean addPunish(Punish punish);

	/**
	 * 根据索取号码删除图书的信息
	 * 
	 * @param sqh
	 *            索取号码
	 * @return 是否删除成功
	 */
	boolean deleteBorrowBySqh(String sqh);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -