package com.ruoyi.web.stock.mapper;

import com.ruoyi.web.stock.domain.WarehouseStockTransfer;
import com.ruoyi.web.stock.domain.WarehouseStockTransferGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 仓库调拨 Mapper。
 */
public interface WarehouseStockTransferMapper {

    WarehouseStockTransfer selectById(Long id);

    List<WarehouseStockTransfer> selectList(WarehouseStockTransfer query);

    int insert(WarehouseStockTransfer entity);

    int deleteById(@Param("id") Long id, @Param("updateBy") String updateBy);

    List<WarehouseStockTransferGoods> selectGoodsByTransferId(Long transferId);

    int insertGoodsBatch(@Param("list") List<WarehouseStockTransferGoods> list);

    int deleteGoodsByTransferId(@Param("transferId") Long transferId, @Param("updateBy") String updateBy);

    Integer selectTodayMaxSeq(@Param("orgId") String orgId, @Param("dateText") String dateText);
}
