package com.ruoyi.info.collection.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.info.collection.domain.CcdiIntermediaryEnterpriseRelation;
import com.ruoyi.info.collection.domain.vo.CcdiIntermediaryEnterpriseRelationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 中介关联机构关系Mapper
 */
@Mapper
public interface CcdiIntermediaryEnterpriseRelationMapper extends BaseMapper<CcdiIntermediaryEnterpriseRelation> {

    int insertBatch(@Param("list") List<CcdiIntermediaryEnterpriseRelation> list);

    List<CcdiIntermediaryEnterpriseRelationVO> selectByIntermediaryBizId(@Param("bizId") String bizId);

    CcdiIntermediaryEnterpriseRelationVO selectDetailById(@Param("id") Long id);

    boolean existsByIntermediaryBizIdAndSocialCreditCode(@Param("bizId") String bizId,
                                                         @Param("socialCreditCode") String socialCreditCode);

    List<String> batchExistsByCombinations(@Param("combinations") List<String> combinations);
}
