package com.prolog.upcloud.base.wh.operate.dao;

import com.prolog.upcloud.base.wh.operate.model.WmsMoveH;
import com.prolog.framework.dao.mapper.BaseMapper;
import com.prolog.upcloud.base.wh.operate.vo.MoveSyncInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wujunjie
 */
@Mapper
public interface WmsMoveHMapper extends BaseMapper<WmsMoveH> {

    /**
     * 查询未上架完毕的主单信息
     *
     * @param moveLineIds 明细ID
     * @param statusList  状态列表
     * @return 未上架完毕的主单信息
     */
    List<MoveSyncInfoVO> getMoveDoneByLineBill(
            @Param("enterpriseId") String enterpriseId,
            @Param("moveBillType") String moveBillType,
            @Param("subBillType") String subBillType,
            @Param("moveLineIds") String[] moveLineIds,
            @Param("statusList") String[] statusList);

    /**
     * 获取待同步信息列表
     *
     * @param headerIds 移库单主表ID集合
     * @return 同步信息列表
     */
    List<MoveSyncInfoVO> getMoveSyncInfoList(@Param("headerIds") String[] headerIds);
}
