完成消息待办和补充安全教育接口
This commit is contained in:
@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user