package com.foreverwin.mesnac.integration.service;

import com.foreverwin.mesnac.integration.dto.*;

public interface InterfaceService {

    /**
     * 物料创建或者更新
     *
     * @param itemSyncRequest
     * @throws Exception
     */
    void itemSync(String site, ItemSyncRequest itemSyncRequest) throws Exception;


    /**
     * 工艺路线同步
     *
     * @param site
     * @param disRouterSyncRequest
     * @throws Exception
     */
    void disRouterSync(String site, DisRouterSyncRequest disRouterSyncRequest)  throws Exception;

    /**
     * 物料清单同步
     *
     * @param site
     * @param bomSyncRequest
     * @throws Exception
     */
    void bomSync(String site, BomSyncRequest bomSyncRequest)  throws Exception;

    /**
     * 工艺路线同步
     *
     * @param site
     * @param routerSyncRequest
     * @throws Exception
     */
    void routerSync(String site, RouterSyncRequest routerSyncRequest)  throws Exception;

    /**
     * 工单同步(ERP-->MES)
     * 新建或更新
     *
     * @param site
     * @param shopOrderSyncRequest
     */
    void shopOrderSync(String site, ShopOrderSyncRequest shopOrderSyncRequest)  throws Exception;

   /**
     * 记录物料批次
     *
     * @param itemBatchReceiveRequest
     * @throws Exception
     */
    void saveItemBatch(String site, ItemBatchReceiveRequest itemBatchReceiveRequest) ;
}
