📄 iorderservice.java
字号:
package com.laoniu.service;
import java.util.List;
import java.util.Map;
import com.laoniu.bean.Book;
import com.laoniu.bean.Orderform;
import com.laoniu.common.exception.OrderServiceException;
public interface IOrderService {
//保存订单
void saveOrder(Orderform order) throws OrderServiceException;
//删除订单
void delOrder(Long orderid) throws OrderServiceException;
//查找用户所有订单
Map<Long,Orderform> listAllOrder(Long customerid) throws OrderServiceException;
//查找单个订单
Orderform findOrderById(Long orderid) throws OrderServiceException;
//查找所有书籍
Map<Long,Book> listAllBook() throws OrderServiceException;
Map<Long,Orderform> listAllorder()throws OrderServiceException;
//分页函数
List<Orderform> searchOrder(Map<Long,Orderform> map,int num,int currentPage)throws OrderServiceException;
//删除图书
void deleteBook(Long bookid)throws OrderServiceException;
//添加图书
void addBook(String name,Double price)throws OrderServiceException;
List<Book> searchBook(Map<Long,Book> map,int num,int currentPage) throws OrderServiceException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -