package com.sunda.spmsorder.service;

import com.sunda.spmscommon.ResponseResult;

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

public interface IOrderTraceService {

    /** SPMS系统有箱码但自管仓无库存且无操作日志，则认为自管仓待到货；日期参数为箱码在SPMS创建起止时间；*/
    List<Map<String, Object>> getWaitingForArrivalBoxList(String beginDate, String endDate);

    /** 自管仓内的箱码列表，直接从储位库存获取，即自管仓库内箱码；werks = CN01 */
    List<Map<String, Object>> getCN01BoxList(String werks, String whsLocationCode, String beginDate, String endDate);

    /** 海运/转储在途库存，从南沙箱码出库日志提取每个箱码最新一条，OPERATION_TYPE = 3, 16, 20，22 即为在途； */
    List<Map<String, Object>> getOverseaOnTheWayBoxList(String beginDate, String endDate);

    /** 海外到货，按箱码到货日志获取；OPERATION_TYPE = 21 表示海外已到货 */
    List<Map<String, Object>> getOverseaArrivalBoxList(String beginDate, String endDate);

    ResponseResult allTypeSyncSap(String werks, String whsLocationCode, String beginDate, String endDate);
}
