package com.ruoyi.web.modules.stock.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.stock.domain.BizStockInbound;
import com.ruoyi.web.modules.stock.dto.StockInboundQuery;
import com.ruoyi.web.modules.stock.vo.StockInboundDetailVO;
import com.ruoyi.web.modules.stock.vo.StockInboundListRowVO;
import com.ruoyi.web.modules.stock.vo.StockOperatorVO;

/**
 * 入库单 Mapper
 */
public interface BizStockInboundMapper
{
    String selectMaxInboundNoByPrefix(@Param("prefix") String prefix);

    int insert(BizStockInbound inbound);

    BizStockInbound selectByIdAndShop(@Param("inboundId") Long inboundId, @Param("shopId") Long shopId);

    List<StockInboundListRowVO> selectList(@Param("shopId") Long shopId, @Param("query") StockInboundQuery query);

    StockInboundDetailVO selectDetail(@Param("shopId") Long shopId, @Param("inboundId") Long inboundId);

    List<StockOperatorVO> selectDistinctOperators(@Param("shopId") Long shopId);
}
