|
@@ -26,9 +26,7 @@ import cn.com.qmth.stmms.biz.exam.service.ExamSubjectService;
|
|
import cn.com.qmth.stmms.biz.exam.service.MarkGroupService;
|
|
import cn.com.qmth.stmms.biz.exam.service.MarkGroupService;
|
|
import cn.com.qmth.stmms.biz.exam.service.MarkerService;
|
|
import cn.com.qmth.stmms.biz.exam.service.MarkerService;
|
|
import cn.com.qmth.stmms.biz.exam.service.query.ExamSubjectSearchQuery;
|
|
import cn.com.qmth.stmms.biz.exam.service.query.ExamSubjectSearchQuery;
|
|
-import cn.com.qmth.stmms.biz.mark.service.MarkLibraryService;
|
|
|
|
import cn.com.qmth.stmms.common.domain.WebUser;
|
|
import cn.com.qmth.stmms.common.domain.WebUser;
|
|
-import cn.com.qmth.stmms.common.enums.LibraryStatus;
|
|
|
|
import cn.com.qmth.stmms.common.utils.ExportExcel;
|
|
import cn.com.qmth.stmms.common.utils.ExportExcel;
|
|
import cn.com.qmth.stmms.common.utils.RequestUtils;
|
|
import cn.com.qmth.stmms.common.utils.RequestUtils;
|
|
|
|
|
|
@@ -41,9 +39,6 @@ public class MarkController extends BaseExamController {
|
|
@Autowired
|
|
@Autowired
|
|
private ExamSubjectService subjectService;
|
|
private ExamSubjectService subjectService;
|
|
|
|
|
|
- @Autowired
|
|
|
|
- private MarkLibraryService libraryService;
|
|
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private MarkerService markerService;
|
|
private MarkerService markerService;
|
|
|
|
|
|
@@ -76,8 +71,8 @@ public class MarkController extends BaseExamController {
|
|
list.add(vo);
|
|
list.add(vo);
|
|
}
|
|
}
|
|
|
|
|
|
- double total = libraryService.countByExamAndSubjectAndGroupAndStatus(examId, null, 0, null);
|
|
|
|
- double finish = libraryService.countByExamAndSubjectAndGroupAndStatus(examId, null, 0, LibraryStatus.MARKED);
|
|
|
|
|
|
+ double total = (double) groupService.sumLibraryCount(examId);
|
|
|
|
+ double finish = (double) groupService.sumMarkedCount(examId);
|
|
double percent = total > 0 ? (finish * 100 / total) : 0;
|
|
double percent = total > 0 ? (finish * 100 / total) : 0;
|
|
model.addAttribute("percent", new DecimalFormat("###.#").format(percent));
|
|
model.addAttribute("percent", new DecimalFormat("###.#").format(percent));
|
|
model.addAttribute("resultList", list);
|
|
model.addAttribute("resultList", list);
|