Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzksxtfw
Overview
Overview
Details
Activity
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
常超
xzksxtfw
Commits
61cc7003
Commit
61cc7003
authored
Jan 09, 2024
by
宋珺琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改题目入参改为paperid
parent
fdfd1a8a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
src/main/java/com/exam/controller/AnswerController.java
+2
-2
src/main/java/com/exam/serviceimpl/AnswerServiceImpl.java
+2
-2
src/main/java/com/exam/serviceimpl/JudgeQuestionServiceImpl.java
+1
-1
src/main/java/com/exam/serviceimpl/MultiQuestionServiceImpl.java
+1
-1
No files found.
src/main/java/com/exam/controller/AnswerController.java
View file @
61cc7003
...
@@ -47,8 +47,8 @@ public class AnswerController {
...
@@ -47,8 +47,8 @@ public class AnswerController {
}
}
@GetMapping
(
"/answersPhoto/{questionid}/{tablename}/{paperid}"
)
@GetMapping
(
"/answersPhoto/{questionid}/{tablename}/{paperid}"
)
public
ApiResult
answersPhoto
(
@PathVariable
(
"
paperid"
)
String
paperid
,
@PathVariable
(
"tablename"
)
String
tablename
,
@PathVariable
(
"subject"
)
String
subject
){
public
ApiResult
answersPhoto
(
@PathVariable
(
"
questionid"
)
String
questionid
,
@PathVariable
(
"tablename"
)
String
tablename
,
@PathVariable
(
"paperid"
)
String
paperid
){
return
ApiResultHandler
.
buildApiResult
(
200
,
"查询题库照片"
,
answerService
.
answersPhoto
(
paperid
,
tablename
,
subject
));
return
ApiResultHandler
.
buildApiResult
(
200
,
"查询题库照片"
,
answerService
.
answersPhoto
(
questionid
,
tablename
,
paperid
));
}
}
@PostMapping
(
"/updateAnswersPhoto"
)
@PostMapping
(
"/updateAnswersPhoto"
)
...
...
src/main/java/com/exam/serviceimpl/AnswerServiceImpl.java
View file @
61cc7003
...
@@ -55,8 +55,8 @@ public class AnswerServiceImpl implements AnswerService {
...
@@ -55,8 +55,8 @@ public class AnswerServiceImpl implements AnswerService {
}
}
@Override
@Override
public
List
<
PaperPhoto
>
answersPhoto
(
String
paperid
,
String
tablename
,
String
subject
)
{
public
List
<
PaperPhoto
>
answersPhoto
(
String
questionid
,
String
tablename
,
String
paperid
)
{
return
answerMapper
.
answersPhoto
(
paperid
,
getQuestionType
(
tablename
),
subject
);
return
answerMapper
.
answersPhoto
(
questionid
,
getQuestionType
(
tablename
),
paperid
);
}
}
@Override
@Override
...
...
src/main/java/com/exam/serviceimpl/JudgeQuestionServiceImpl.java
View file @
61cc7003
...
@@ -25,7 +25,7 @@ public class JudgeQuestionServiceImpl implements JudgeQuestionService {
...
@@ -25,7 +25,7 @@ public class JudgeQuestionServiceImpl implements JudgeQuestionService {
public
List
<
JudgeQuestion
>
findByIdAndType
(
Integer
paperId
)
{
public
List
<
JudgeQuestion
>
findByIdAndType
(
Integer
paperId
)
{
List
<
JudgeQuestion
>
list
=
judgeQuestionMapper
.
findByIdAndType
(
paperId
);
List
<
JudgeQuestion
>
list
=
judgeQuestionMapper
.
findByIdAndType
(
paperId
);
list
.
stream
().
forEach
(
p
->{
list
.
stream
().
forEach
(
p
->{
List
<
PaperPhoto
>
listPhoto
=
answerMapper
.
answersPhoto
(
String
.
valueOf
(
p
.
getQuestionId
()),
"3"
,
p
.
getSubject
(
));
List
<
PaperPhoto
>
listPhoto
=
answerMapper
.
answersPhoto
(
String
.
valueOf
(
p
.
getQuestionId
()),
"3"
,
String
.
valueOf
(
paperId
));
p
.
setImg
(
listPhoto
.
stream
()
p
.
setImg
(
listPhoto
.
stream
()
.
map
(
PaperPhoto:
:
getImg
)
.
map
(
PaperPhoto:
:
getImg
)
.
distinct
()
.
distinct
()
...
...
src/main/java/com/exam/serviceimpl/MultiQuestionServiceImpl.java
View file @
61cc7003
...
@@ -25,7 +25,7 @@ public class MultiQuestionServiceImpl implements MultiQuestionService {
...
@@ -25,7 +25,7 @@ public class MultiQuestionServiceImpl implements MultiQuestionService {
public
List
<
MultiQuestion
>
findByIdAndType
(
Integer
PaperId
)
{
public
List
<
MultiQuestion
>
findByIdAndType
(
Integer
PaperId
)
{
List
<
MultiQuestion
>
list
=
multiQuestionMapper
.
findByIdAndType
(
PaperId
);
List
<
MultiQuestion
>
list
=
multiQuestionMapper
.
findByIdAndType
(
PaperId
);
list
.
stream
().
forEach
(
p
->{
list
.
stream
().
forEach
(
p
->{
List
<
PaperPhoto
>
listPhoto
=
answerMapper
.
answersPhoto
(
String
.
valueOf
(
p
.
getQuestionId
()),
"1"
,
p
.
getSubject
(
));
List
<
PaperPhoto
>
listPhoto
=
answerMapper
.
answersPhoto
(
String
.
valueOf
(
p
.
getQuestionId
()),
"1"
,
String
.
valueOf
(
PaperId
));
p
.
setImg
(
listPhoto
.
stream
()
p
.
setImg
(
listPhoto
.
stream
()
.
map
(
PaperPhoto:
:
getImg
)
.
map
(
PaperPhoto:
:
getImg
)
.
distinct
()
.
distinct
()
...
...
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