package com.sundot.airport.check.service.impl;

import com.sundot.airport.check.mapper.CheckCorrectionMapper;
import com.sundot.airport.common.dto.ModuleStatisticsDTO;
import com.sundot.airport.common.service.ICheckProblemStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <b>功能名：</b>CheckProblemStatisticsServiceImpl<br>
 * <b>说明：</b> 巡检问题统计Service实现（用于智能出题） <br>
 * <b>著作权：</b> Copyright (C) 2025 SUNDOT CORPORATION<br>
 * <b>修改履历：
 *
 * @author Simon Lin
 */
@Service
public class CheckProblemStatisticsServiceImpl implements ICheckProblemStatisticsService {

    @Autowired
    private CheckCorrectionMapper checkCorrectionMapper;

    @Override
    public List<ModuleStatisticsDTO> countCheckProblemsByModule(Long userId, Date startDate, Date endDate) {
        return checkCorrectionMapper.countCheckProblemsByModule(userId, startDate, endDate);
    }
}
