package com.yeshi.fanli.service.inter.order;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.bus.user.HongBao;
|
import com.yeshi.fanli.entity.bus.user.Order;
|
import com.yeshi.fanli.entity.bus.user.OrderItem;
|
import com.yeshi.fanli.entity.taobao.TaoBaoOrder;
|
import com.yeshi.fanli.exception.OrderItemException;
|
|
public interface OrderItemServcie {
|
|
/**
|
* 保存或修改子订单
|
*
|
* @param list
|
*/
|
void saveOrUpdate(List<OrderItem> list);
|
|
/**
|
* 查找用户的子订单
|
*
|
* @param uid
|
* @param page
|
* @return
|
*/
|
List<OrderItem> findOrderItemList(long uid, int page);
|
|
int getCount(long uid);
|
|
OrderItem getOne(long id);
|
|
/**
|
* 查询出版本为2(即新子订单)的可返利子订单
|
*
|
* @param currentTimeMillis
|
* @return
|
*/
|
List<OrderItem> findSettlement(long currentTimeMillis);
|
|
|
/**
|
* 将红包转化成子订单
|
*
|
* @param hb
|
* @return
|
*/
|
OrderItem conver(HongBao hb);
|
|
/**
|
* 修改子订单
|
*
|
* @param orderItem
|
*/
|
void update(OrderItem orderItem);
|
|
void updateSelective(OrderItem orderItem);
|
|
/**
|
* 同步老订单(迁移时执行一次即可)
|
*
|
* @param tborderList
|
*/
|
void synOldOrder(List<TaoBaoOrder> tborderList);
|
|
// 通过OrderId找orderId
|
List<OrderItem> findByOrderId(long orderId);
|
|
/**
|
* 处理订单集合
|
*
|
* @param orderId
|
* @param orderList
|
*/
|
public void processOrderItem(String orderId, List<TaoBaoOrder> orderList);
|
|
public OrderItem addOrderItem(TaoBaoOrder taoBaoOrder, Order order, BigDecimal rate) throws OrderItemException;
|
|
public void updateOrderItem(TaoBaoOrder taoBaoOrder, Long orderItemId, BigDecimal rate) throws OrderItemException;
|
|
public List<OrderItem> getOrderItemByOrderId(String orderId);
|
|
public OrderItem selectByPrimaryKey(Long id);
|
|
}
|