package com.bonus.sgzb.material.mapper;

import com.bonus.sgzb.material.domain.PurchaseCheckDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 新购验收任务详细purchase_check_detailsMapper接口
 *
 * @author bonus
 * @date 2023-12-10
 */
public interface PurchaseCheckDetailsMapper {
    /**
     * 查询新购验收任务详细purchase_check_details
     *
     * @param taskId 新购验收任务详细purchase_check_details主键
     * @return 新购验收任务详细purchase_check_details
     */
    public PurchaseCheckDetails selectPurchaseCheckDetailsByTaskId(Long taskId);

    /**
     * 查询新购验收任务详细purchase_check_details列表
     *
     * @param purchaseCheckDetails 新购验收任务详细purchase_check_details
     * @return 新购验收任务详细purchase_check_details集合
     */
    public List<PurchaseCheckDetails> selectPurchaseCheckDetailsList(PurchaseCheckDetails purchaseCheckDetails);

    /**
     * 新增新购验收任务详细purchase_check_details
     *
     * @param purchaseCheckDetails 新购验收任务详细purchase_check_details
     * @return 结果
     */
    public int insertPurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails);

    /**
     * 修改新购验收任务详细purchase_check_details
     *
     * @param purchaseCheckDetails 新购验收任务详细purchase_check_details
     * @return 结果
     */
    public int updatePurchaseCheckDetails(PurchaseCheckDetails purchaseCheckDetails);

    /**
     * 删除新购验收任务详细purchase_check_details
     *
     * @param taskId 新购验收任务详细purchase_check_details主键
     * @return 结果
     */
    public int deletePurchaseCheckDetailsByTaskId(Long taskId);

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

    int insertPurchaseCheckDetailsList(@Param("purchaseCheckDetailsList") List<PurchaseCheckDetails> purchaseCheckDetailsList);
}
