首页>代码>ssm框架整合bootstrap开发图书馆图书预约管理系统>/BookAppointment/src/main/java/com/szu/appoint/dao/BookDao.java
package com.szu.appoint.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.szu.appoint.entiy.Book;

public interface BookDao {
	/*
	 * 根据id查询书
	 * 
	 */
	Book queryById(long id);
	List<Book> querySome(String name);
	List<Book> queryAll(@Param("offset") int offset,@Param("limit") int limit);

	
	int getCount();
	
	/*减少管存数量
	 * 用返回值可判断当前库存是否还有书
	 */
	 int reduceNumber(long bookId);
	 
	 /**
	 * 取消预约 馆藏数量+1
	 * 
	 */
	 int increaseNumber(long bookId);
	 
	 int changeNumber(@Param("number")int number,@Param("bookname")String bookname);
	 
	 void addBook(@Param("bookName")String bookName,@Param("bookNumber")int bookNumber,@Param("bookinfo")String bookinfo);
	 
}
最近下载更多
krispeng  LV15 6月4日
小猪?  LV3 2024年5月27日
吞吞吐吐她  LV6 2024年4月21日
敏哥gege  LV43 2024年1月11日
lyq6666666  LV5 2023年10月25日
jiangandchen  LV5 2023年5月7日
陈跃阳  LV7 2022年12月21日
qqttuu  LV3 2022年12月21日
taoshen95  LV16 2022年12月10日
微信网友_6248713511227392  LV11 2022年12月5日
最近浏览更多
奋斗的小蚂蚁  LV13 前天
huyuxin  LV4 8月11日
甜心冰淇淋  LV4 6月24日
XD_futura 5月13日
暂无贡献等级
阿尔法谦 4月23日
暂无贡献等级
987654321666 3月7日
暂无贡献等级
krispeng  LV15 2024年8月25日
hmf1989 2024年8月23日
暂无贡献等级
smile殇佯  LV18 2024年7月3日
dnuygwqudyg 2024年6月28日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友