package com.sunda.spmswms.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sunda.spmscommon.ResponseResult;
import com.sunda.spmswms.entity.InventoryCheckActionDtl;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 盘盈盘亏明细表 服务类
 * </p>
 *
 * @author Wayne
 * @since 2021-05-10
 */
public interface IInventoryCheckActionDtlService extends IService<InventoryCheckActionDtl> {
    /*获取InventoryCheckAction行项*/
    ResponseResult getInvCheckAcDtl(String uuid);

    /*更新InventoryCheckAcDtl行项
     * 以uuid及taskRowId为key，存在则更新，不存在则新建
     * */
    ResponseResult updateInvCheckDtl(String uuid, JSONArray invCheckDtls);

    /** 获取盘盈盘亏行项目 */
    List<InventoryCheckActionDtl> getICADList(String uuid);

    /** 获取盘盈盘亏任务明细提交SAP，贸易货 */
    List<Map<String, Object>> getInventoryActionDtlM(String uuid);

    /** 获取盘盈盘亏任务明细提交SAP，备件货 */
    List<Map<String, Object>> getInventoryActionDtlX(String uuid);
}
