Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
exam_master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
exam_master
Commits
c86a3349
Commit
c86a3349
authored
Jun 21, 2024
by
陈立彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化已考
parent
b0af7cf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ExamController.java
src/main/java/cn/aibreeze/exam/api/ExamController.java
+9
-9
No files found.
src/main/java/cn/aibreeze/exam/api/ExamController.java
View file @
c86a3349
...
@@ -106,13 +106,13 @@ public class ExamController {
...
@@ -106,13 +106,13 @@ public class ExamController {
}
}
@PostMapping
(
value
=
"update_question"
)
@PostMapping
(
value
=
"update_question"
)
public
ApiResponse
<
String
>
updateQuestion
(
@Request
Body
UpdateQuestionRequestDto
requestDto
)
{
public
ApiResponse
<
String
>
updateQuestion
(
@Request
Param
(
"tenant"
)
Integer
tenant
,
@RequestParam
(
"session_id"
)
String
sessionId
,
String
answer
=
requestDto
.
getAnswer
();
@RequestParam
(
"user_id"
)
String
userId
,
Integer
tenant
=
requestDto
.
getTenant
();
@RequestParam
(
"question_id"
)
Long
questionId
,
String
sessionId
=
requestDto
.
getSessionId
();
@RequestParam
(
value
=
"answer"
,
required
=
false
)
String
answer
,
String
userId
=
requestDto
.
getUserId
();
@RequestParam
(
value
=
"score"
,
required
=
false
)
Double
score
,
Long
questionId
=
requestDto
.
getQuestionId
();
@RequestParam
(
value
=
"score_criteria"
,
required
=
false
)
String
scoreCriteria
)
{
ElehSessionQaRecordDo
recordDo
=
new
ElehSessionQaRecordDo
();
ElehSessionQaRecordDo
recordDo
=
new
ElehSessionQaRecordDo
();
...
@@ -121,8 +121,8 @@ public class ExamController {
...
@@ -121,8 +121,8 @@ public class ExamController {
recordDo
.
setTenant
(
tenant
);
recordDo
.
setTenant
(
tenant
);
recordDo
.
setSessionId
(
sessionId
);
recordDo
.
setSessionId
(
sessionId
);
recordDo
.
setUserId
(
userId
);
recordDo
.
setUserId
(
userId
);
recordDo
.
setScoreCriteria
(
requestDto
.
getScoreCriteria
()
);
recordDo
.
setScoreCriteria
(
scoreCriteria
);
recordDo
.
setScore
(
recordDo
.
getScore
()
);
recordDo
.
setScore
(
score
);
recordDo
.
setCreatedAt
(
new
Date
());
recordDo
.
setCreatedAt
(
new
Date
());
qaRecordMapper
.
insert
(
recordDo
);
qaRecordMapper
.
insert
(
recordDo
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment