package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.UnableToAccessWebsiteListToday;
import com.ruoyi.system.domain.VisitingWebsiteRanking;
import com.ruoyi.system.domain.WebSiteTenDaysHits;
import com.ruoyi.system.domain.WebsiteAvailabilityMonitor;
import com.ruoyi.system.mapper.VisitingWebsiteRankingMapper;
import com.ruoyi.system.mapper.WebsiteAvailabilityMonitorMapper;
import com.ruoyi.system.service.IVisitingWebsiteRankingService;
import com.ruoyi.system.service.IWebsiteAvailabilityMonitorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class VisitingWebsiteRankingServiceImpl implements IVisitingWebsiteRankingService {


    @Autowired
    private VisitingWebsiteRankingMapper visitingWebsiteRankingMapper;


    @Override
    public List<VisitingWebsiteRanking> selectVisitingWebsiteRankingList() {
        return visitingWebsiteRankingMapper.selectVisitingWebsiteRankingList();
    }

    @Override
    public void insertBatch(List<VisitingWebsiteRanking> list) {
        visitingWebsiteRankingMapper.deleteVisitingWebsiteRankingAll();
        visitingWebsiteRankingMapper.insertBatch(list);
    }
}
