Skip to content

Commit

Permalink
feat: 练习模式添加查询
Browse files Browse the repository at this point in the history
  • Loading branch information
javahuang committed May 4, 2024
1 parent 24478ff commit 91cdab8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ public PaginationResponse<ExerciseView> historyExercise(HistoryExerciseQuery que
super.page(page, Wrappers.<Answer>lambdaQuery()
.eq(query.getProjectId() != null, Answer::getProjectId, query.getProjectId())
.isNotNull(Answer::getExamExerciseType)
.eq(query.getTempSave() != null, Answer::getTempSave, query.getTempSave())
.eq(Answer::getCreateBy, SecurityContextUtils.getUserId())
.orderByDesc(Answer::getCreateAt));

Expand All @@ -385,7 +386,7 @@ public PaginationResponse<ExerciseView> historyExercise(HistoryExerciseQuery que
view.setProjectName(x.getProjectId());
view.setTempSave(x.getTempSave());
view.setCreateAt(x.getCreateAt());
view.setExamPracticeType(x.getExamExerciseType());
view.setExamExerciseType(x.getExamExerciseType());
view.setAnswerId(x.getId());
SurveySchema schema = x.getSurvey();
view.setProjectName(schema.getTitle());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class ExerciseView {

private Date createAt;

private ExamExerciseTypeEnum examPracticeType;
private ExamExerciseTypeEnum examExerciseType;

private String repoId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class HistoryExerciseQuery extends PageQuery {

private String projectId;

private String tempSave;
private Integer tempSave;

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date[] createTime;
Expand Down

0 comments on commit 91cdab8

Please sign in to comment.