package com.bonus.material.part.mapper;

import com.bonus.material.part.domain.PartTypeCheckDetails;
import org.apache.ibatis.annotations.Param;

/**
 * @Author ma_sh
 * @create 2025/2/18 17:10
 */
public interface PartCheckMapper {

    /**
     * 任务状态更新
     * @param taskId
     * @param newTaskStatus
     * @param checkResult
     * @return
     */
    int batchUpdateDetailsTaskStatus(@Param("taskId") Long taskId, @Param("newTaskStatus") Integer newTaskStatus, @Param("checkResult") String checkResult);

    /**
     * 更新采购明细
     * @param details
     * @return
     */
    int updatePurchaseDetails4Check(PartTypeCheckDetails details);
}
