package com.ruoyi.web.stock.mapper;

import com.ruoyi.web.stock.domain.WarehouseIn;
import com.ruoyi.web.stock.domain.WarehouseInGoods;
import com.ruoyi.web.stock.domain.vo.MaterialOptionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 生产入库 Mapper。
 */
public interface WarehouseInboundMapper {
    WarehouseIn selectWarehouseInById(Long id);

    List<WarehouseIn> selectWarehouseInList(WarehouseIn query);

    int insertWarehouseIn(WarehouseIn entity);

    int updateWarehouseInTotalAmount(@Param("id") Long id, @Param("totalAmount") java.math.BigDecimal totalAmount, @Param("updateBy") String updateBy);

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

    List<WarehouseInGoods> selectWarehouseInGoodsByInId(Long inId);

    int insertWarehouseInGoodsBatch(@Param("list") List<WarehouseInGoods> list);

    int deleteWarehouseInGoodsByInId(@Param("inId") Long inId, @Param("updateBy") String updateBy);

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

    List<MaterialOptionVo> selectMaterialDetailOptions(@Param("orgId") String orgId);
}
