| | |
| | | package com.qxueyou.scc.admin.score.service.impl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.qxueyou.scc.base.model.Pager; |
| | | import com.qxueyou.scc.exam.dao.ExamResultVDao; |
| | | import com.qxueyou.scc.exam.model.ExamResultV; |
| | | import com.qxueyou.scc.exercise.dao.ExerciseResultDAO; |
| | | import com.qxueyou.scc.exercise.model.ExerciseResultV; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | |
| | | @Service |
| | | public class ScoreService extends CommonAppService implements IScoreService { |
| | | |
| | | |
| | | @Autowired |
| | | HomeworkScoreVDAO homeworkDao; |
| | | |
| | | |
| | | @Autowired |
| | | ExamScoreVDAO examDao; |
| | | |
| | | @Autowired |
| | | ExamResultVDao examResultVDao; |
| | | |
| | | @Autowired |
| | | ExerciseResultDAO exerciseResultDAO; |
| | | |
| | | @Override |
| | | public Map<String,Object> queryClassExamScoreInfo(String classId) { |
| | | |
| | | |
| | | return CollectionUtils.newObjectMap( |
| | | "examCount",examDao.getExamCount(classId), |
| | | "examHasAuditCount",examDao.getExamCount(classId), |
| | | "examToAuditCount",0, |
| | | "examNoSubmitCount",examDao.getToSubmitExamCount(classId) |
| | | ); |
| | | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public Map<String,Object> queryClassHomeworkScoreInfo(String classId) { |
| | | |
| | | |
| | | return CollectionUtils.newObjectMap( |
| | | "homeworkCount",homeworkDao.getHomeworkCount(classId), |
| | | "homeworkHasAuditCount",homeworkDao.getHomeworkHasAuditCount(classId), |
| | |
| | | ); |
| | | } |
| | | |
| | | @Override |
| | | public List<ExamResultV> allExamResultV(String classId) { |
| | | return examResultVDao.getResultList(classId); |
| | | } |
| | | @Override |
| | | public List<ExerciseResultV> allExerciseResultV(String classId){ |
| | | return exerciseResultDAO.getResultList(classId); |
| | | } |
| | | |
| | | |
| | | } |