package com.ruoyi.warehouse.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import com.ruoyi.warehouse.domain.PurchaseBatch; public interface PurchaseBatchMapper { List selectPurchaseBatchList(PurchaseBatch batch); List selectPurchaseBatchOptions(@Param("keyword") String keyword); List selectPurchaseBatchFilterOptions(@Param("keyword") String keyword); PurchaseBatch selectPurchaseBatchById(Long id); PurchaseBatch selectPurchaseBatchForUpdate(Long id); PurchaseBatch selectPurchaseBatchByNo(String batchNo); int insertPurchaseBatch(PurchaseBatch batch); int updatePurchaseBatch(PurchaseBatch batch); int countRequestsByBatchId(Long batchId); List selectBatchProjectIds(Long batchId); int countBatchDocuments(Long batchId); int countRequestsByIds(Long[] requestIds); int assignRequests(@Param("requestIds") Long[] requestIds, @Param("batch") PurchaseBatch batch, @Param("updateBy") String updateBy); int syncRequestBatchNo(@Param("batchId") Long batchId, @Param("batchNo") String batchNo, @Param("updateBy") String updateBy); int deletePurchaseBatchById(Long id); }