IPurchasePlanService.java 1.1 KB
package com.skua.modules.erp.service;

import com.skua.modules.erp.entity.PurchasePlan;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skua.modules.erp.entity.PurchasePlanItem;

import java.util.List;

/**
 * erp采购计划表
 */
public interface IPurchasePlanService extends IService<PurchasePlan> {

    /***
     * 新增
     * @param purchasePlan
     * @return
     */
    public int  savePurchasePlan(PurchasePlan purchasePlan);

    /***
     * 修改
     * @param purchasePlan
     * @return
     */
    public boolean updatePurchasePlan(PurchasePlan purchasePlan);

    /***
     * 删除
     * @param planId
     * @return
     */
    public int  delPurchasePlan(String planId);

    /***
     * 根据编号获取采购计划
     * @param planId
     * @return
     */
    public PurchasePlan queryById(String planId);

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

    /***
     *  审批 采购计划
     * @param purchasePlan
     */
    public  void auditPurchasePlan(PurchasePlan purchasePlan);
}