Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface IReviewQuestionRepository {
"WHERE user_id = #{userId} AND now()- interval 7 day >= update_time")
int queryReviewQuestions(@Param("userId") String userId);

void deleteBatch(@Param("userId") String userId, @Param("questionIds") List<Integer> questionIds);
void deleteBatch(@Param("userId") String userId, @Param("questionIds") List<String> questionIds);

List<CountByTypeVO> countBySubject(String userId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public interface IReviewFeedbackService {
* @param userId
* @param questionIds
*/
void deleteBatch(String userId, List<Integer> questionIds);
void deleteBatch(String userId, List<String> questionIds);

/**
* 获取用户待复习题目统计信息
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public Page<MistakeQuestionEntity> searchAndFilter(MistakeQueryParamsVO params)
}

@Override
public void deleteBatch(String userId, List<Integer> questionIds) {
public void deleteBatch(String userId, List<String> questionIds) {
repository.deleteBatch(userId, questionIds);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public interface IMistakeQuestionMapper {
@Select("SELECT subject, knowledge_point_id AS knowledgeId FROM MistakeQuestion WHERE question_id = #{mistakeQuestionId}")
MistakeKnowledgePO findSubjectAndKnowledgeIdById(String mistakeQuestionId);

@Select("SELECT knowledge_point_name AS knowledgeName FROM KnowledgePoint WHERE knowledge_point_id = #{knowledgeId}")
@Select("select knowledge_point_name from knowledgePoint " +
"where knowledge_point_id = (select knowledge_point_id from MistakeQuestion where question_id = #{questionId})")
String findKnowledgeNameById(String questionId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public Response<?> list(
*/
@DeleteMapping("/deleteBatch")
@GlobalInterception
public Response<String> deleteBatch(@RequestParam List<Integer> questionIds) {
public Response<String> deleteBatch(@RequestParam List<String> questionIds) {
String userId = UserContext.getUserId();
try {
log.info("用户删除待复习题目开始,userId:{}", userId);
Expand Down
Loading