package com.uas.platform.b2b.history.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.uas.platform.b2b.history.model.PurchaseOrder;
import com.uas.platform.b2b.history.model.PurchaseOrderAll;
import com.uas.platform.b2b.history.model.PurchaseOrderEnd;
import com.uas.platform.b2b.history.model.PurchaseOrderReply;
import com.uas.platform.b2b.history.model.PurchaseOrderTodo;
import com.uas.platform.core.model.PageInfo;

public interface PurchaseOrderService {

	/**
	 * 分页查找订单
	 * 
	 * @param pageInfo
	 * @return
	 */
	public Page<PurchaseOrder> findAllByPageInfo(PageInfo pageInfo);

	/**
	 * 分页查找订单，包括明细
	 * 
	 * @param pageInfo
	 * @return
	 */
	public Page<PurchaseOrderAll> findAllDetailByPageInfo(PageInfo pageInfo);

	/**
	 * 分页查找待回复订单，包括明细
	 * 
	 * @param pageInfo
	 * @return
	 */
	public Page<PurchaseOrderTodo> findTodoByPageInfo(PageInfo pageInfo);

	/**
	 * 分页查找已结案订单明细
	 * 
	 * @param pageInfo
	 * @return
	 */
	public Page<PurchaseOrderEnd> findEndByPageInfo(PageInfo pageInfo);

	/**
	 * 用订单ID查找订单
	 * 
	 * @param id
	 * @return
	 */
	public PurchaseOrderAll findById(Long id);

	/**
	 * 查找订单明细的回复记录
	 * 
	 * @param orderItemId
	 *            订单明细ID
	 * @return
	 */
	public List<PurchaseOrderReply> findReplyByOrderItem(long orderItemId);

}