package com.sunda.spmsoversea.service;

import com.sunda.spmscommon.ResponseResult;
import com.sunda.spmsoversea.entity.OverseaWhsInventoryLoss;
import com.sunda.spmsuser.entity.SpmsUser;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 海外仓-存货损益头表 服务类
 * </p>
 *
 * @author Hzc
 * @since 2024-05-07
 */
public interface IOverseaWhsInventoryLossService extends IService<OverseaWhsInventoryLoss> {
	
	/**
	 * 分页查询
	 * @param jsonObject
	 * @return
	 */
	ResponseResult getWhsInventoryLossPage(JSONObject jsonObject);
	
	/**
	 * 查询详情接口
	 * @param jsonObject
	 * @return
	 */
	ResponseResult getWhsInventoryLossDetails(JSONObject jsonObject);
	
	/**
	 * 保存存货损益数据
	 * @param jsonObject
	 * @param userId 
	 * @return
	 */
	ResponseResult createWhsInventoryLoss(JSONObject jsonObject, String userId) throws Exception;
	
	/**
	 * 提交OA接口
	 * @param jsonObject
	 * @param spmsUser
	 * @return
	 */
	ResponseResult toOaWhsInventoryLoss(JSONObject jsonObject, SpmsUser spmsUser) throws Exception;
	
	/**
	 * 提交SAP
	 * @param jsonObject
	 * @param userId
	 * @return
	 */
	ResponseResult toSapWhsInventoryLoss(JSONObject jsonObject, String userId) throws Exception;
	
	/**
	 * 撤销
	 * @param jsonObject
	 * @param userId
	 * @return
	 */
	ResponseResult cancelWhsInventoryLoss(JSONObject jsonObject, String userId) throws Exception;
	
	/**
	 * 关闭
	 * @param jsonObject
	 * @param userId
	 * @return
	 */
	ResponseResult closeWhsInventoryLoss(JSONObject jsonObject, String userId) throws Exception;

}
