package com.ruoyi.warehouse.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import com.ruoyi.warehouse.domain.PurchaseRequest; import com.ruoyi.warehouse.domain.PurchaseTaskSummary; public interface PurchaseRequestMapper { List selectPurchaseSheetRows(Long batchId); List selectPurchaseRequestList(PurchaseRequest purchaseRequest); PurchaseTaskSummary selectPurchaseTaskSummary(); PurchaseRequest selectPurchaseRequestById(@Param("id") Long id, @Param("applicantId") Long applicantId); PurchaseRequest selectPurchaseRequestByIdForUpdate(Long id); PurchaseRequest checkRequestNoUnique(String requestNo); int insertPurchaseRequest(PurchaseRequest purchaseRequest); int updatePurchaseRequest(@Param("purchaseRequest") PurchaseRequest purchaseRequest, @Param("applicantId") Long applicantId); int deletePurchaseRequestByIds(@Param("ids") Long[] ids, @Param("applicantId") Long applicantId); int updatePurchaseStatus(@Param("id") Long id, @Param("purchaseStatus") Integer purchaseStatus, @Param("progressRemark") String progressRemark, @Param("updateBy") String updateBy); int countConfirmedInbound(Long id); int updatePriceState(PurchaseRequest request); int insertPriceLedger(@Param("existing") PurchaseRequest existing, @Param("updated") PurchaseRequest updated, @Param("operation") String operation, @Param("newLedgerNo") String newLedgerNo, @Param("oldLedgerNo") String oldLedgerNo); }