package org.jeecg.modules.demo.linkpersonalbankcarddetection.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.linkpersonalbankcarddetection.entity.LinkPersonalBankCardDetection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 个人信息银行卡号检测
 * @Author: jeecg-boot
 * @Date:   2023-05-23
 * @Version: V1.0
 */
@Mapper
public interface LinkPersonalBankCardDetectionMapper extends BaseMapper<LinkPersonalBankCardDetection> {

    @Select("select SUM(error_count) errorCount from link_personal_bank_card_detection WHERE is_ignore = '2' and is_revise = '1' and main_site_url = #{mainSiteUrl} limit 1")
    LinkPersonalBankCardDetection listCountByMainUrl(String mainSiteUrl);
}
