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

import java.util.List;

import com.uas.platform.b2b.erp.model.Purchase;
import com.uas.platform.b2b.erp.model.PurchaseDetailEnd;
import com.uas.platform.b2b.erp.model.PurchaseReply;
import com.uas.platform.b2b.model.PurchaseOrderAllItem;
import com.uas.platform.b2b.model.PurchaseOrderItem;
import com.uas.platform.b2b.model.PurchaseOrderReply;

public interface PurchaseService {

	/**
	 * 将ERP系统的采购订单，转为平台的订单
	 * 
	 * @param purchases
	 * @return
	 */
	List<PurchaseOrderAllItem> convertPurchase(List<Purchase> purchases);

	/**
	 * 将平台的订单回复，转为ERP的回复
	 * 
	 * @param replies
	 * @return
	 */
	List<PurchaseReply> convertPurchaseOrderReply(List<PurchaseOrderReply> replies);

	/**
	 * 将买家在ERP的主动回复，转为平台的回复记录
	 * 
	 * @param replies
	 * @return
	 */
	List<PurchaseOrderReply> convertPurchaseReply(List<PurchaseReply> replies);

	/**
	 * 将买家在ERP的结案、反结案采购单，转为平台的结案、反结案客户采购单
	 * 
	 * @param ends
	 * @return
	 */
	List<PurchaseOrderItem> convertPurchaseEnd(List<PurchaseDetailEnd> ends);

}
