package com.sunda.spmsoversea.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunda.spmscommon.ResponseResult;
import com.sunda.spmsoversea.entity.OverseaWhsInDtl;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 海外仓入库任务明细 服务类
 * </p>
 *
 * @author Wayne
 * @since 2021-08-26
 */
public interface IOverseaWhsInDtlService extends IService<OverseaWhsInDtl> {

    /**
     * 新建入库任务明细数据；
     * @param overseaWhsInDtl
     * @return
     */
    int addOverseaWhsInDtl(OverseaWhsInDtl overseaWhsInDtl);

    /**
     * 根据 入库任务uuid 查询入库任务明细数据；
     * @param uuidWhsIn
     * @return
     */
    List<Map<String, Object>> getOverseaWhsInDtlList(String uuidWhsIn);

    /**
     * 根据 入库任务明细自增ID 查询一条入库任务明细行数据；
     * @param autoIdWhsInDtl
     * @return
     */
    OverseaWhsInDtl getOverseaWhsInDtl (int autoIdWhsInDtl);

    /**
     * 根据参数更新入库任务明细一行数据；
     * @param overseaWhsInDtl
     * @return
     */
    int updateOverseaWhsInDtl(OverseaWhsInDtl overseaWhsInDtl);

    /**
     * 根据 入库任务uuid 查询入库任务明细数据；
     * @param uuidWhsIn
     * @return
     */
    List<OverseaWhsInDtl> getOverseaWhsInDtls(String uuidWhsIn);
    
    /** 根据SPMS单号查询单据详情 **/
	ResponseResult getOverseaWhsInHead(String whsInNo);
}
