IPurchasePlanService.java 1.8 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.PurchasePlan;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skua.modules.erp.entity.PurchasePlanItem;
import com.skua.modules.erp.vo.PurchasePlanSearchVO;
import com.skua.modules.erp.vo.PurchasePlanVO;

import java.util.List;

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

    /***
     * 新增
     * @param purchasePlanVO
     * @return
     */
    public int  savePurchasePlan(PurchasePlanVO purchasePlanVO);

    /***
     * 修改
     * @param purchasePlanVO
     * @return
     */
    public boolean updatePurchasePlan(PurchasePlanVO purchasePlanVO);

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

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

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

    /***
     *  审批 采购计划
     * @param purchasePlanVO
     */
    public  void auditPurchasePlan(PurchasePlanVO purchasePlanVO);

    /***
     * 统计分页:按照物料分组
     * @param page
     * @param purchasePlanSearchVO
     * @return
     */
    IPage<PurchasePlanItem> statisticsPage(Page<PurchasePlanItem> page, PurchasePlanSearchVO purchasePlanSearchVO);

    /***
     *  查询某一物料的的采购计划物料清单
     * @param page
     * @return
     */
    IPage<PurchasePlanItem> statisticsPageBySparepartId(Page<PurchasePlanItem> page, PurchasePlanSearchVO purchasePlanSearchVO);

}