package com.nasc.custom.mapper;

import com.nasc.custom.domain.NascDealRecord;
import com.nasc.custom.domain.NascManualVerify;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: Yujianq
 * @Date: 2024/6/4 16:38
 * @Description: 人工核验记录表
 * @return:
 */
public interface NascManualVerifyMapper {

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 10:50
     * @Description: 新增人工核验记录
     * @param manualVerify
     * @return: int
     */
    int insertManualVerify(NascManualVerify manualVerify);

    /**
     * @Author: Yujianq
     * @Date: 2024/12/4 11:07
     * @Description: 修改人工核验订单中的受理ID
     * @param dealId
     * @param manualVerifyList
     * @return: int
     */
    int updateManualVerifyDealId(@Param("dealId") Long dealId, @Param("manualVerifyList") List<Long> manualVerifyList);

    List<Map<String, Object>> selectManualVerifyList(@Param("serialNumber") String serialNumber, @Param("dealStatus") Integer dealStatus);

    int updateManualVerify(NascManualVerify manualVerify);

    /**
     * @Author: Yujianq
     * @Date: 2024/12/4 15:51
     * @Description: 根据ID获取所有人工审核信息
     * @param ids
     * @return: java.util.List<com.nasc.custom.domain.NascManualVerify>
     */
    List<NascManualVerify> getManualVerifyByIds(@Param("ids") List<Long> ids);
}
