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.PurchaseBatch;
|
|
|
|
|
|
|
|
|
|
public interface PurchaseBatchMapper
|
|
|
|
|
{
|
|
|
|
|
List<PurchaseBatch> selectPurchaseBatchList(PurchaseBatch batch);
|
|
|
|
|
List<PurchaseBatch> selectPurchaseBatchOptions(@Param("keyword") String keyword);
|
|
|
|
|
List<PurchaseBatch> selectPurchaseBatchFilterOptions(@Param("keyword") String keyword);
|
|
|
|
|
PurchaseBatch selectPurchaseBatchById(Long id);
|
2026-10-13 09:41:46 +08:00
|
|
|
PurchaseBatch selectPurchaseBatchForUpdate(Long id);
|
2026-09-15 15:50:24 +08:00
|
|
|
PurchaseBatch selectPurchaseBatchByNo(String batchNo);
|
|
|
|
|
int insertPurchaseBatch(PurchaseBatch batch);
|
|
|
|
|
int updatePurchaseBatch(PurchaseBatch batch);
|
|
|
|
|
int countRequestsByBatchId(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);
|
|
|
|
|
}
|