Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
answer-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
answer
answer-backend
Commits
968e3bb2
Commit
968e3bb2
authored
Feb 03, 2023
by
wqc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多选题答题计算1
parent
01bd69f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
user-server/src/main/java/com/zq/user/service/QuestionService.java
+3
-2
No files found.
user-server/src/main/java/com/zq/user/service/QuestionService.java
View file @
968e3bb2
...
@@ -148,9 +148,9 @@ public class QuestionService {
...
@@ -148,9 +148,9 @@ public class QuestionService {
for
(
String
s
:
split
)
{
for
(
String
s
:
split
)
{
String
str
=
s
.
replace
(
"\""
,
""
);
String
str
=
s
.
replace
(
"\""
,
""
);
list
.
add
(
str
);
list
.
add
(
str
);
}
String
collect
=
list
.
stream
().
collect
(
Collectors
.
joining
(
","
));
String
collect
=
list
.
stream
().
collect
(
Collectors
.
joining
(
","
));
if
(!
collect
.
equals
(
answer
)){
boolean
remove
=
answerList
.
remove
(
str
);
if
(!
remove
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"subject"
,
question
.
getSubject
());
map
.
put
(
"subject"
,
question
.
getSubject
());
map
.
put
(
"answer"
,
question
.
getAnswer
());
map
.
put
(
"answer"
,
question
.
getAnswer
());
...
@@ -160,6 +160,7 @@ public class QuestionService {
...
@@ -160,6 +160,7 @@ public class QuestionService {
wrongQuestionList
.
add
(
map
);
wrongQuestionList
.
add
(
map
);
break
;
break
;
}
}
}
}
else
{
}
else
{
for
(
Object
o
:
answerArr
)
{
for
(
Object
o
:
answerArr
)
{
String
s
=
Convert
.
toStr
(
o
,
""
);
String
s
=
Convert
.
toStr
(
o
,
""
);
...
...
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