From b05715c83c4e04165a6682f2049e68ca606f656c Mon Sep 17 00:00:00 2001 From: hjl <1657978663@qq.com> Date: 星期三, 26 六月 2024 10:38:53 +0800 Subject: [PATCH] fix: 学习端bug --- ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/ITStudyService.java | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/ITStudyService.java b/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/ITStudyService.java index d7ddbc8..460c819 100644 --- a/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/ITStudyService.java +++ b/ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/ITStudyService.java @@ -22,18 +22,18 @@ * * @param type 所属类型 * @param quarter 季度 + * @param userId 用户id * @return 列表 */ - List<StudyWeekDTO> weekList(Integer type, Integer quarter); + List<StudyWeekDTO> weekList(Integer type, Integer quarter, Integer userId); /** * 获取学习进度及学习时长等信息 * * @param userId 用户id - * @param week 周目 * @return 学习信息 */ - TUserStudy studySchedule(String userId, Integer week); + TUserStudy studySchedule(String userId); /** * 自主学习1-听音选图 @@ -51,8 +51,9 @@ * @param difficulty 难度(0入门、1中级、2高级) * @param week 所属周目 * @param game 游戏信息 + * @param userid 用户id */ - void checkDifficulty(Integer difficulty, Integer week, TGame game); + void checkDifficulty(Integer difficulty, Integer week, TGame game, Integer userid); /** * 自主学习2-看图选音 @@ -112,4 +113,21 @@ * @return 积分 */ int computeTotalIntegral(List<String> studyIds, Integer type, Integer accuracy); + + /** + * 计算剩余学习周目 + * + * @param studyRecord 学习进度信息 + * @param studyList 学习配置列表 + * @return 剩余周目 + */ + int residueWeek(TUserStudy studyRecord, List<TStudy> studyList); + + /** + * 校验超级听力是否通过 + * + * @param game 游戏信息 + * @param userid 用户信息 + */ + void checkClearance(TGame game, Integer userid); } -- Gitblit v1.7.1