完成消息待办和补充安全教育接口

This commit is contained in:
2025-03-21 14:02:44 +08:00
parent fb1cdf731c
commit ab7e0a15ab
14 changed files with 126 additions and 35 deletions

View File

@ -26,4 +26,8 @@ public interface WgzQuestionSaveMapper extends BaseMapperPlus<WgzQuestionSave> {
"WHERE correct = 1 AND user_id = #{userId}")
Map<String, Object> getSumScoreAndPassAndSign(@Param("userId") Long userId);
//查询指定用户所有答对的题目分数
@Select("SELECT SUM(score) AS sumScore FROM wgz_question_save WHERE user_id = #{userId} AND correct = 1")
float getSumScore(@Param("userId") Long userId);
}