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

import com.huigou.topsun.sap.purchase.domain.SapPurchase;
import com.huigou.topsun.sap.purchase.domain.query.SapPurchaseQueryRequest;
import com.huigou.topsun.sap.purchase.domain.vo.SapPurchaseItemDto;

import java.util.Map;

/**
 * @Auther: xin.lu
 * @Date: 2023/12/27/10:37
 * @Description:
 */
public interface SapPurchaseApplication {
    public static final String QUERY_XML_FILE_PATH = "config/topsun/sap/sapPurchase/sapPurchase.xml";

    String PROCESS_DEFINITION_KEY = "sapPurchaseProc";

    Map<String,Object> slicedSapPurchaseList(SapPurchaseQueryRequest queryRequest);

    SapPurchase loadSapPurchase(String id);

    String revokeApproval(String id,String revokeReason,String revokeType);

    SapPurchase saveEPPurchaseItem(SapPurchase sapPurchase,SapPurchaseItemDto sapPurchaseItemDto);
}
