IEROPurchaseContractService.java 1.7 KB
package com.skua.modules.erp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.skua.modules.erp.entity.ERPPurchaseContract;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skua.modules.erp.entity.PurchaseMaterial;
import com.skua.modules.erp.entity.PurchasePlanItem;
import com.skua.modules.erp.vo.PurchaseContractVO;
import com.skua.modules.erp.vo.PurchasePlanSearchVO;

import java.util.List;

/**
 * 采购合同
 */
public interface IEROPurchaseContractService extends IService<ERPPurchaseContract> {

    /***
     * 新增purchaseContractVO
     * @param purchaseContractVO
     */
    public  void savePurchaseContract(PurchaseContractVO purchaseContractVO);

    /**
     * 修改purchaseContractVO
     * @param purchaseContractVO
     * @return
     */
    public  boolean updatePurchaseContract(PurchaseContractVO purchaseContractVO);

    /***
     * 删除purchaseContractVO
     * @param id
     */
    public  void delById(String id);

    /***
     * 根据id查询purchaseContractVO
     * @param id
     * @return
     */
    public  PurchaseContractVO queryById(String id);

    /**
     * 根据编号获取采购清单集合
     * @param contractId
     * @return
     */
    public List<PurchaseMaterial> queryListByContractId(String contractId);

    /***
     *  审批 采购合同
     * @param purchaseContractVO
     */
    public  void auditPurchaseContract(PurchaseContractVO purchaseContractVO);

    /***
     * 同步入库操作
     * @param purchaseContractVO
     * @return
     */
    public int syncEquipmentIn(PurchaseContractVO  purchaseContractVO)throws Exception;

}