IERPPurchaseContractService.java 2.6 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.MaterialSearchVO;
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
     * @return
     */
    String checkPurchaseContract(PurchaseContractVO purchaseContractVO,String oldContractCode, int checkCount  );
    /***
     * 校验方法:校验是否唯一
     * @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);

    /***
     * 变更合同
     * @param purchaseContractVO
     */
    void changePurchaseContract(PurchaseContractVO purchaseContractVO);

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

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

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

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

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

    /***
     *  根据分销编号查询采购合同列表
     * @param materialSearchVO
     * @return
     */
    List<ERPPurchaseContract> getListByDistributId(MaterialSearchVO materialSearchVO);


}