package com.bonus.sgzb.material.service;

import com.bonus.sgzb.material.domain.PurchaseCheckInfo;
import com.bonus.sgzb.material.domain.PurchaseInput;
import com.bonus.sgzb.material.domain.PurchaseMacodeInfo;
import com.bonus.sgzb.base.api.domain.MaInputVO;
import com.bonus.sgzb.material.vo.NoticeInfoVO;

import java.util.List;

/**
 * 新购验收任务purchase_check_infoService接口
 * 
 * @author bonus
 * @date 2023-12-10
 */
public interface PurchaseCheckServiceCenterService
{
    /**
     * 查询新购验收任务purchase_check_info
     * @param taskId
     * @param keyword
     * @return
     */
    public PurchaseCheckInfo selectPurchaseCheckInfoByTaskId(Long taskId,String keyword);

    /**
     * 查询新购验收任务purchase_check_info列表
     * 
     * @param purchaseCheckInfo 新购验收任务purchase_check_info
     * @return 新购验收任务purchase_check_info集合
     */
    public List<PurchaseCheckInfo> selectPurchaseCheckInfoList(PurchaseCheckInfo purchaseCheckInfo);

    /**
     * 新增新购验收任务purchase_check_info
     * 
     * @param purchaseCheckInfo 新购验收任务purchase_check_info
     * @return 结果
     */
    public int insertPurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo);

    /**
     * 修改新购验收任务purchase_check_info
     * @param purchaseCheckInfo
     * @return
     * @throws Exception
     */
    public int updatePurchaseCheckInfo(PurchaseCheckInfo purchaseCheckInfo) throws Exception;

    /**
     * 批量删除新购验收任务purchase_check_info
     * 
     * @param taskIds 需要删除的新购验收任务purchase_check_info主键集合
     * @return 结果
     */
    public int deletePurchaseCheckInfoByTaskIds(Long[] taskIds);

    /**
     * 删除新购验收任务purchase_check_info信息
     * 
     * @param taskId 新购验收任务purchase_check_info主键
     * @return 结果
     */
    public int deletePurchaseCheckInfoByTaskId(Long taskId);

    /**
     * 验收通知
     * @param noticeInfoVO
     * @return
     * @throws Exception
     */
    Boolean insertBmNoticeInfo(NoticeInfoVO noticeInfoVO) throws Exception;

    /**
     * 查询新购入库任务列表
     * @param purchaseCheckInfo
     * @return
     */
    List<PurchaseCheckInfo> selectPutInListList(PurchaseCheckInfo purchaseCheckInfo);

    /**
     * 新购工机具验收导出
     * @param purchaseCheckInfo
     * @return
     */
    List<PurchaseCheckInfo> exportList(PurchaseCheckInfo purchaseCheckInfo);

    /**
     * 新购工机具入库导出
     * @param purchaseCheckInfo
     * @return
     */
    List<PurchaseInput> putInExportList(PurchaseCheckInfo purchaseCheckInfo);

    /**
     * 获取新购验收任务--验收单
     *
     * @param taskId
     * @param keyWord
     * @return
     */
    PurchaseCheckInfo getAcceptanceForm(Long taskId, String keyWord);

    /**
     * 新购入库清单明细
     * @param purchaseMacodeInfo
     * @return List<PurchaseMacodeInfo>
     */
    List<PurchaseMacodeInfo> selectPutinDetails(PurchaseMacodeInfo purchaseMacodeInfo);

    /**
     * 综合服务中心审核
     * 审核-通过/不通过
     * @param maInputVO
     * @return
     */
    int modifyManageStatus(MaInputVO maInputVO);

    /**
    * 查询组织是否开启审核
    * @param companyId
    * @return int
    */
    int selectExamineType(Long companyId);
}
