IERPPurchaseContractService.java 2.0 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.PurchaseMaterialVO;
import com.skua.modules.erp.vo.PurchasePlanSearchVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 采购合同
 */
public interface IERPPurchaseContractService extends IService<ERPPurchaseContract> {
    /***
     * 校验方法:校验是否唯一
     * @param purchaseContractVO
     * @param checkCount    新增= 0 ,修改checkCount=1
     * @return 返回有问题的货号
     */
     String checkGoodCode(PurchaseContractVO purchaseContractVO,int checkCount );
    /***
     * 新增purchaseContractVO
     * @param purchaseContractVO
     */
     void savePurchaseContract(PurchaseContractVO purchaseContractVO);

    /**
     * 修改purchaseContractVO
     * @param purchaseContractVO
     * @return
     */
     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
     */
     void auditPurchaseContract(PurchaseContractVO purchaseContractVO);

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