package com.sunda.spmsoversea.service;

import com.sunda.spmscommon.ResponseResult;
import com.sunda.spmsoversea.dto.OverseaBatchReceiptSearchDto;
import com.sunda.spmsoversea.entity.OverseaOtherBatchReceipt;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 其他收货分批收货表头 服务类
 * </p>
 *
 * @author Wayne
 * @since 2023-02-10
 */
public interface IOverseaOtherBatchReceiptService extends IService<OverseaOtherBatchReceipt> {
	/**
	 * 查询其他收货分批收货列表
	 * @param overseaDnSearchDTO
	 * @return
	 */
	List<Map<String, Object>> selectList(OverseaBatchReceiptSearchDto overseaDnSearchDTO);
	
	/**
	 * 查询其他收货分批收货行数据
	 * @param overseaDnSearchDTO
	 * @return
	 */
	List<Map<String, Object>> selectDtlList(OverseaBatchReceiptSearchDto overseaDnSearchDTO);
	
	/**
	 * 保存
	 * @param obj
	 * @param userId
	 * @return
	 */
	ResponseResult saveOverseaBatchReceipt(JSONObject obj, String userId) throws Exception;
	
	/**
	 * 提交
	 * @param obj
	 * @param userId
	 * @return
	 */
	ResponseResult submitOverseaBatchReceipt(JSONObject obj, String userId) throws Exception;
	
	/**
	 * 提交SAP
	 * @param obj
	 * @param userId
	 * @return
	 */
	ResponseResult submitToSap(JSONObject obj, String userId) throws Exception;
	
	/**
	 * 单据撤销
	 * @param obj
	 * @param userId
	 * @return
	 */
	ResponseResult cancelDn(JSONObject obj, String userId) throws Exception;
	
	/**
	 * 删除单据
	 * @param obj
	 * @param userId
	 * @return
	 */
	ResponseResult deleteReceipt(JSONObject obj, String userId);

}
