xiangpei
2025-05-14 47cd9ecc0eff38ffe6b3b794b2bf197e958f4403
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);