2026-09-15 15:50:24 +08:00
|
|
|
package com.ruoyi.warehouse.mapper;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
import com.ruoyi.warehouse.domain.PurchaseRequest;
|
2026-10-09 17:32:04 +08:00
|
|
|
import com.ruoyi.warehouse.domain.PurchaseTaskSummary;
|
2026-09-15 15:50:24 +08:00
|
|
|
|
|
|
|
|
public interface PurchaseRequestMapper
|
|
|
|
|
{
|
2026-10-12 16:41:42 +08:00
|
|
|
List<PurchaseRequest> selectPurchaseSheetRows(Long batchId);
|
2026-09-15 15:50:24 +08:00
|
|
|
List<PurchaseRequest> selectPurchaseRequestList(PurchaseRequest purchaseRequest);
|
2026-10-09 17:32:04 +08:00
|
|
|
PurchaseTaskSummary selectPurchaseTaskSummary();
|
2026-09-15 15:50:24 +08:00
|
|
|
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);
|
2026-10-12 16:41:42 +08:00
|
|
|
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);
|
2026-09-15 15:50:24 +08:00
|
|
|
}
|