📄 iorderdao.java
字号:
package com.laoniu.dao;
import java.util.Map;
import java.util.Set;
import com.laoniu.bean.Book;
import com.laoniu.bean.Orderform;
import com.laoniu.bean.Orderline;
public interface IOrderDao {
//保存订单
void saveOrder(Orderform order) throws Exception;
//删除订单
void deleteOrder(Orderform order) throws Exception;
//查询客户的所有订单
Map<Long,Orderform> findAllOrder(Long customerid) throws Exception;
//通过订单ID查找订单
Orderform findOrderById(Long orderid) throws Exception;
//Set<Orderline> findOrderById(Long orderid) throws Exception;
//查询所有书籍
Map<Long,Book> findAllBook() throws Exception;
Map<Long,Orderform> listAllOrder()throws Exception;
void deleteBook(Long bookid)throws Exception;
Book findBookbyid(Long id)throws Exception;
void addBook(Book book)throws Exception;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -