📄 iorderdao.java
字号:
package com.tarena.shopcart.entity.dao;
import java.util.List;
import com.tarena.shopcart.entity.OrderStatus;
import com.tarena.shopcart.entity.Orders;
import com.tarena.shopcart.entity.Payway;
public interface IOrderDAO {
/**
*
* @param order
* @return
*/
public List getOrdersByStatus(String status);
/**
* 修改订单状态
*
* @param order
* @return
*/
public boolean modifyOrderStatus(Orders order);
/**
* 生成订单
*
* @param order
* @return
*/
public boolean buildOrder(Orders order);
/**
* 得到所有的付款方式
*
* @return
*/
public List getAllPayway();
/**
* 得到所有的定单状态
*
* @return
*/
public List getAllStatus();
/**
* 得到某用户的所有订单
*
* @param uid
* @return
*/
public List getAllOrderByUid(String uid);
/**
* 通过订单号删除订单
*
* @param oid
* @return
*/
public boolean deleteOrderByUid(int oid);
/**
* 删除该用户的所有订单
*
* @param uid
* @return
*/
public boolean deleteOrderByuserid(String userId);
/**
* 直接删除一个订单对象
*
* @param order
* @return
*/
public boolean deleteOrder(Orders order);
/**
* 通对订单号得到订单
*
* @param oid
* @return
*/
public Orders getOrderByUid(int oid);
/**
* 得到订单的付款方式
*
* @param paywayId
* @return Payway
*/
public Payway getPaywayByPyid(int paywayId);
/**
* 得到订单的状态
*
* @param statusId
* @return OrderStatus
*/
public OrderStatus getStatusByid(int statusId);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -