package com.yeshi.fanli.service.inter.shop;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.shop.BanLiShopOrder;
|
import com.yeshi.fanli.exception.redpack.RedPackBalanceException;
|
import com.yeshi.fanli.exception.shop.BanLiShopOrderException;
|
|
/**
|
* 板栗商城订单服务
|
*
|
* @author Administrator
|
*
|
*/
|
public interface BanLiShopOrderService {
|
|
/**
|
* 添加订单
|
*
|
* @param order
|
* @throws BanLiShopOrderException
|
*/
|
public void addOrder(BanLiShopOrder order) throws BanLiShopOrderException;
|
|
/**
|
* 构造订单
|
*
|
* @param pay
|
* @param uid
|
* @return
|
* @throws BanLiShopOrderException
|
*/
|
public BanLiShopOrder createOrder(Long goodsSetPayId, String chargeAccount, Long uid)
|
throws BanLiShopOrderException;;
|
|
/**
|
* 使订单失效
|
*
|
* @param id
|
*/
|
public void invalidOrderByOrderId(Long id, String desc);
|
|
/**
|
* 拒绝订单
|
*
|
* @param id
|
* @param msg
|
* @throws BanLiShopOrderException
|
*/
|
public void rejectOrder(Long id, String msg) throws BanLiShopOrderException;
|
|
/**
|
* 订单支付(用红包)
|
*
|
* @param orderId
|
* @throws BanLiShopOrderException
|
* @throws RedPackBalanceException
|
*/
|
public void payOrderByHongBao(Long orderId) throws BanLiShopOrderException, RedPackBalanceException;
|
|
/**
|
* 订单支付(用现金)
|
*
|
* @param orderId
|
* @throws BanLiShopOrderException
|
*/
|
public void payOrderByMoney(Long orderId, BigDecimal money) throws BanLiShopOrderException;
|
|
public BanLiShopOrder selectByPrimaryKeyForUpdate(Long id);
|
|
/**
|
* 根据用户ID检索
|
*
|
* @param uid
|
* @param page
|
* @param pageSize
|
* @return
|
*/
|
public List<BanLiShopOrder> listByUid(Long uid, int page, int pageSize);
|
|
/**
|
* 根据用户ID计算
|
*
|
* @param uid
|
* @return
|
*/
|
public long countByUid(Long uid);
|
|
/**
|
* 根据用户ID,状态查询
|
*
|
* @param uid
|
* @param stateList
|
* @param page
|
* @param pageSize
|
* @return
|
*/
|
public List<BanLiShopOrder> listByUidAndState(Long uid, List<Integer> stateList, int page, int pageSize);
|
|
/**
|
* 根据用户ID,状态查询
|
*
|
* @param uid
|
* @param stateList
|
* @return
|
*/
|
public long countByUidAndState(Long uid, List<Integer> stateList);
|
|
/**
|
* 根据主键检索
|
*
|
* @param id
|
* @return
|
*/
|
public BanLiShopOrder selectByPrimaryKey(Long id);
|
|
/**
|
* 根据主键更新
|
*
|
* @param order
|
*/
|
public void udpateSelectiveByPrimaryKey(BanLiShopOrder order);
|
|
/**
|
* 根据订单号查询
|
*
|
* @param orderNo
|
* @return
|
*/
|
public BanLiShopOrder selectByOrderNo(String orderNo);
|
|
}
|