package com.yh.saas.plugin.yiliangyiyun.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.yh.saas.plugin.yiliangyiyun.entity.ProcurementPlanInfo;
import com.baomidou.mybatisplus.service.IService;
import com.yh.saas.plugin.yiliangyiyun.entity.view.ReleaseView;

/**
 * <p>
 * 记录采购计划 服务类
 * </p>
 *
 * @author Gongdc
 * @since 2021-07-20
 */
public interface IProcurementPlanInfoService extends IService<ProcurementPlanInfo> {

    /**
     * 查看采购计划
     *
     * @param id
     */
    ProcurementPlanInfo getProcurementPlan(String id);

    /**
     * 编辑采购计划
     *
     * @param procurementPlanInfo
     */
    String editProcurementPlan(ProcurementPlanInfo procurementPlanInfo);

    /**
     * 删除采购计划
     *
     * @param id
     */
    void deleteProcurementPlan(String id);

    /**
     * 采购计划列表
     *
     * @param procurementPlanInfo
     * @return
     */
    Page<ProcurementPlanInfo> selectProcurementPlanInfo(ProcurementPlanInfo procurementPlanInfo);

    /**
     * 添加采购计划
     *
     * @param procurementPlanInfo
     * @return
     */
    String insertProcurementPlanInfo(ProcurementPlanInfo procurementPlanInfo);

    /**
     * 更改状态
     *
     * @param procurementPlanInfo
     * @return
     */
    String editStatus(ProcurementPlanInfo procurementPlanInfo);

    /**
     * 审核
     *
     * @param procurementPlanInfo
     * @return
     */
    String examine(ProcurementPlanInfo procurementPlanInfo);

    /**
     * APP我的发布列表
     *
     * @param procurementPlanInfo
     * @return
     */
    Page<ReleaseView> selectProcurementPlanInfoAPP(ProcurementPlanInfo procurementPlanInfo);


}
