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

import com.uas.platform.b2b.erp.model.ProductSample;
import com.uas.platform.b2b.erp.model.ProductSampleApproval;
import com.uas.platform.b2b.model.PurchaseProofingApproval;
import com.uas.platform.b2b.model.PurchaseProofingItem;

import java.util.List;

public interface PurchaseSampleService {

	/**
	 * 将ERP系统的打样申请，转为平台的客户打样申请单
	 * 
	 * @param samples
	 * @return
	 */
	List<PurchaseProofingItem> convertProofing(List<ProductSample> samples);
	
	/**
	 * 将ERP系统的送样认定单,转为平台的认定单
	 * @param sampleApprovals
	 * @return
	 */
	List<PurchaseProofingApproval> convertApproval(List<ProductSampleApproval> sampleApprovals);

	/**
	 * 查询打样申请单对应的平台的id
     *
	 * @param productSamples 打样申请
	 * @return
	 */
    List<ProductSample> getB2bId(List<ProductSample> productSamples);

    /**
     * 查询认定单对应的平台的id
     *
     * @param sampleApprovals erp认定单
     * @return
     */
    List<ProductSampleApproval> getApprovalB2bId(List<ProductSampleApproval> sampleApprovals);
}
