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 @@ -4,7 +4,7 @@

<select id="selectByCondition"
resultType="com.achobeta.domain.Feetback.model.entity.MistakeQuestionEntity">
select m.question_id as id, question_content, update_time , subject, k.knowledge_desc, is_calculate_err, is_careless, is_time_shortage, is_unfamiliar, other_reason
select m.question_id as id, question_content, update_time , subject, k.knowledge_point_name as knowledge_desc, is_calculate_err, is_careless, is_time_shortage, is_unfamiliar, other_reason
from MistakeQuestion m join knowledgePoint k on m.knowledge_point_id = k.knowledge_point_id
<where>
m.user_id = #{userId}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class MistakeQuestionEntity {
/**
* 错误题目id
*/
private Integer id;
private String id;
/**
* 错误题目内容
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.codec.ServerSentEvent;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import reactor.core.publisher.Flux;

@Slf4j
Expand Down Expand Up @@ -99,7 +96,7 @@ public Response recordMistakeQuestion(@NotNull String questionId) {
*/
@GlobalInterception
@GetMapping("/{question_id}/knowledge")
public Response<String> getQuestionKnowledge(@NotNull String questionId) {
public Response<String> getQuestionKnowledge(@PathVariable String questionId) {
String userId = UserContext.getUserId();
String questionKnowledge = null;
try {
Expand Down
Loading