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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.linkweibophonedetection.entity.LinkWeiboPhoneDetection;
import org.jeecg.modules.demo.linkweibophonedetection.entity.LinkWeiboPhoneDetectionVo;

/**
 * @Description: 微博手机号检测
 * @Author: jeecg-boot
 * @Date:   2023-07-03
 * @Version: V1.0
 */
@Mapper
public interface LinkWeiboPhoneDetectionVoMapper extends BaseMapper<LinkWeiboPhoneDetectionVo> {

    @Select("select sum(error_count) from link_weibo_phone_detection where is_ignore = 2 and is_revise = 1 and user_id = #{id} limit 1")
    Integer getSumStatistics(String id);
}
