cmvr-wms/ruoyi-system/src/main/java/com/ruoyi/warehouse/mapper/PurchaseBatchMapper.java

24 lines
1.1 KiB
Java
Raw Normal View History

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);
PurchaseBatch selectPurchaseBatchForUpdate(Long id);
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);
}