package org.jeecg.modules.demo.linkerrorstatistics.service.impl;

import org.jeecg.modules.demo.linkerrorstatistics.entity.LinkErrorStatistics;
import org.jeecg.modules.demo.linkerrorstatistics.mapper.LinkErrorStatisticsMapper;
import org.jeecg.modules.demo.linkerrorstatistics.service.ILinkErrorStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 错链信息统计
 * @Author: jeecg-boot
 * @Date:   2023-04-13
 * @Version: V1.0
 */
@Service
public class LinkErrorStatisticsServiceImpl extends ServiceImpl<LinkErrorStatisticsMapper, LinkErrorStatistics> implements ILinkErrorStatisticsService {

    @Autowired
    private LinkErrorStatisticsMapper linkErrorStatisticsMapper;

    @Override
    public List<LinkErrorStatistics> listCount() {
        return linkErrorStatisticsMapper.listCount();
    }

    @Override
    public LinkErrorStatistics listCountByMainUrl(String mainUrl) {
        return linkErrorStatisticsMapper.listCountByMainUrl(mainUrl);
    }
}
