package com.ruoyi.stock.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.stock.dto.StockInventoryDto;
import com.ruoyi.stock.dto.StockUninventoryDto;
import com.ruoyi.stock.execl.StockUnInventoryExportData;
import com.ruoyi.stock.pojo.StockUninventory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.List;
/**
*
* 不合格库存表 Mapper 接口
*
*
* @author 芯导软件(江苏)有限公司
* @since 2026-01-22 10:17:45
*/
@Mapper
public interface StockUninventoryMapper extends BaseMapper {
IPage pageStockUninventory(Page page, @Param("ew") StockUninventoryDto stockUninventoryDto);
IPage pageWasteQuery(Page page, @Param("ew") StockUninventoryDto stockUninventoryDto);
IPage getWasteBatchNoQty(Page page, @Param("ew") StockInventoryDto stockInventoryDto);
int updateSubtractStockUnInventory(@Param("ew") StockUninventoryDto stockUninventoryDto);
BigDecimal selectPendingOutQuantity(@Param("productModelId") Long productModelId, @Param("batchNo") String batchNo, @Param("type") String type);
int updateAddStockUnInventory(@Param("ew") StockUninventoryDto stockUninventoryDto);
List listStockInventoryExportData(@Param("ew") StockUninventoryDto stockUninventoryDto);
List listWasteQueryExportData(@Param("ew") StockUninventoryDto stockUninventoryDto);
}