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

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.stock.domain.BizStockOutbound;
import com.ruoyi.web.modules.stock.dto.StockOutboundQuery;
import com.ruoyi.web.modules.stock.vo.StockOperatorVO;
import com.ruoyi.web.modules.stock.vo.StockOutboundDetailVO;
import com.ruoyi.web.modules.stock.vo.StockOutboundListRowVO;

/**
 * 出库单 Mapper
 */
public interface BizStockOutboundMapper
{
    String selectMaxOutboundNoByPrefix(@Param("prefix") String prefix);

    BizStockOutbound selectByRefOrderNo(@Param("refOrderNo") String refOrderNo);

    int insert(BizStockOutbound outbound);

    List<StockOutboundListRowVO> selectList(@Param("shopId") Long shopId, @Param("query") StockOutboundQuery query);

    StockOutboundDetailVO selectDetail(@Param("shopId") Long shopId, @Param("outboundId") Long outboundId);

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