package com.sunda.spmsoversea.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sunda.spmscommon.ResponseResult;
import com.sunda.spmsoversea.entity.OverseaInvCheckActionDtl;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 盘盈盘亏明细表 服务类
 * </p>
 *
 * @author Wayne
 * @since 2021-05-10
 */
public interface IOverseaInvCheckActionDtlService extends IService<OverseaInvCheckActionDtl> {
    /*获取InventoryCheckAction行项*/
    ResponseResult getInvCheckAcDtl(String uuid);

    /*更新InventoryCheckAcDtl行项
     * 以uuid及taskRowId为key，存在则更新，不存在则新建
     * */
    ResponseResult updateInvCheckDtl(String uuid, JSONArray invCheckDtls)throws Exception ;

    /** 获取盘盈盘亏行项目 */
    List<OverseaInvCheckActionDtl> getICADList(String uuid);

    /** 获取盘盈盘亏任务明细提交SAP，贸易货 */
    List<Map<String, Object>> getInventoryActionDtl(String uuid);

    /**获取带物料信息的行项,用于提交OA */
    List<Map<String, Object>> getOverseaInvChkDtls(String uuid);
    
}
