package com.erp.purchase.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.erp.purchase.dto.PurchaseInboundDTO;
import com.erp.purchase.entity.PurchaseInbound;

public interface PurchaseInboundService {

    IPage<PurchaseInbound> listPage(PurchaseInboundDTO.QueryRequest query);

    PurchaseInbound getById(Long id);

    PurchaseInbound getByInboundNo(String inboundNo);

    PurchaseInbound create(PurchaseInboundDTO.CreateRequest request, Long operatorId);

    PurchaseInbound confirmInbound(Long inboundId, PurchaseInboundDTO.ConfirmRequest request, Long operatorId);

    void cancel(Long inboundId, Long operatorId);
}
