package com.huigou.topsun.sap.processOutsource.application;

import com.huigou.topsun.sap.processOutsource.domain.ProcessOutsourceMaterial;
import com.huigou.topsun.sap.processOutsource.domain.query.ProcessOutsourceQueryRequest;

import java.util.List;
import java.util.Map;

/**
 * @Auther: xin.lu
 * @Date: 2024/08/02/10:01
 * @Description:
 */
public interface ProcessOutsourceMaterialApplication {
    public static final String QUERY_XML_FILE_PATH = "config/topsun/sap/processOutsource/processOutsource.xml";
    void saveProcessOutsourceMaterials(String sapPurchaseId, List<ProcessOutsourceMaterial> processOutsourceMaterials);

    Map<String,Object> queryProcessOutsourceMaterials(ProcessOutsourceQueryRequest queryRequest);

    void deleteByIds(List<String> ids);

    List<ProcessOutsourceMaterial> findByProcessOutsourceId(String processOutsourceId);
}
