From 33fdb033e0a6b5ef6b2f8ac5fc67ad8222e564e5 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 17 五月 2024 14:49:12 +0800 Subject: [PATCH] 下载文件接口,bug修改 --- src/main/java/com/mindskip/xzs/service/impl/SelfPracticeServiceImpl.java | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/service/impl/SelfPracticeServiceImpl.java b/src/main/java/com/mindskip/xzs/service/impl/SelfPracticeServiceImpl.java index 1968c85..d137530 100644 --- a/src/main/java/com/mindskip/xzs/service/impl/SelfPracticeServiceImpl.java +++ b/src/main/java/com/mindskip/xzs/service/impl/SelfPracticeServiceImpl.java @@ -74,7 +74,7 @@ if (! CollectionUtils.isEmpty(subjectNames)) { item.setSubjectNames(subjectNames.stream().collect(Collectors.joining("銆�"))); } - item.setTotalQuestionNum(questionSubjectMapper.countQuestionNum(subjects)); + item.setTotalQuestionNum(questionSubjectMapper.countQuestionNum(subjects, PracticeQuestionTypeEnum.getDataBaseValueByValue(item.getQuestionType()))); // 鏌ヨ宸茬粡鍋氫簡澶氬皯 PracticeQuestionCondition practiceQuestionCondition = practiceQuestionConditionMapper.selectByPracticeId(item.getId()); if (Objects.nonNull(practiceQuestionCondition)) { @@ -151,12 +151,6 @@ return RestResponse.ok(questionVO); } return RestResponse.ok(); - } - - @Override - public RestResponse subjectQuestionNum(List<Integer> subjectIds) { - Integer num = questionSubjectMapper.countQuestionNum(subjectIds); - return RestResponse.ok(num); } @Override -- Gitblit v1.8.0