package com.testor.module.train.project.service.impl;

import com.testor.module.train.project.dao.TTrainProjectDao;
import com.testor.module.train.project.model.stat.ProjectScoreStatVo;
import com.testor.module.train.project.model.stat.ProjectStatPara;
import com.testor.module.train.project.service.TrainProjectStatisticsAllService;
import com.testor.module.train.project.service.TrainProjectStatisticsDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @author caq
 * @date 2024/9/6
 * @description TODO
 */
@Service
public class TrainProjectStatisticsDetailServiceImpl implements TrainProjectStatisticsDetailService {

    @Autowired
    private TrainProjectStatisticsAllService trainProjectStatisticsAllService;
    @Autowired
    private TTrainProjectDao tTrainProjectDao;


    @Override
    public ProjectScoreStatVo findExamStates(ProjectStatPara para) {

        return tTrainProjectDao.findExamStates(para.getProjectId());
    }

    @Override
    public List<String> findScoreStatByProjectId(ProjectStatPara para) {
        return tTrainProjectDao.findScoreStat(para.getProjectId());
    }

    @Override
    public List<String> findScoreRepairTest(ProjectStatPara para) {
        return tTrainProjectDao.findScoreRepairTest(para.getProjectId());
    }
}
