龚焕茏
2024-07-16 219cf838792ab0d50dd042d0fb8c60dd3a1e76f8
src/main/java/com/mindskip/xzs/controller/admin/DashboardController.java
@@ -35,18 +35,19 @@
    public RestResponse<IndexVM> Index() {
        IndexVM vm = new IndexVM();
        Integer examPaperCount = examPaperService.selectAllCount();
        List<Integer> deptIds = getAdminDeptIds();
        Integer examPaperCount = examPaperService.selectAllCount(deptIds);
        Integer questionCount = questionService.selectAllCount();
        Integer doExamPaperCount = examPaperAnswerService.selectAllCount();
        Integer doQuestionCount = examPaperQuestionCustomerAnswerService.selectAllCount();
        Integer doExamPaperCount = examPaperAnswerService.selectAllCount(deptIds);
        Integer doQuestionCount = examPaperQuestionCustomerAnswerService.selectAllCount(deptIds);
        vm.setExamPaperCount(examPaperCount);
        vm.setQuestionCount(questionCount);
        vm.setDoExamPaperCount(doExamPaperCount);
        vm.setDoQuestionCount(doQuestionCount);
        List<Integer> mothDayUserActionValue = userEventLogService.selectMothCount();
        List<Integer> mothDayDoExamQuestionValue = examPaperQuestionCustomerAnswerService.selectMothCount();
        List<Integer> mothDayUserActionValue = userEventLogService.selectMothCount(deptIds);
        List<Integer> mothDayDoExamQuestionValue = examPaperQuestionCustomerAnswerService.selectMothCount(deptIds);
        vm.setMothDayUserActionValue(mothDayUserActionValue);
        vm.setMothDayDoExamQuestionValue(mothDayDoExamQuestionValue);