Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EduSpider
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
viitto
EduSpider
Commits
974644a5
Commit
974644a5
authored
Aug 19, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9f372145
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
ExamService.cs
EduSpider.Services/ExamService.cs
+6
-3
No files found.
EduSpider.Services/ExamService.cs
View file @
974644a5
...
...
@@ -97,9 +97,11 @@ namespace EduSpider.Services
if
(
sExamModel
!=
null
)
{
sExamModel
.
ScoreList
=
JsonHelper
.
Deserialize
<
List
<
ExamQScoreModel
>>(
sExamModel
.
Content
);
foreach
(
var
qitem
in
sExamModel
.
ScoreList
)
{
qitem
.
Difficulty
=
qlist
.
Where
(
x
=>
x
.
Sort
==
qitem
.
Sort
).
FirstOrDefault
()?.
Difficulty
??
""
;
qitem
.
KnowledgePoint
=
qlist
.
Where
(
x
=>
x
.
Sort
==
qitem
.
Sort
).
FirstOrDefault
()?.
KnowledgePoint
??
""
;
qitem
.
QScore
=
qlist
.
Where
(
x
=>
x
.
Sort
==
qitem
.
Sort
).
FirstOrDefault
()?.
Score
??
0
;
var
qmodel
=
qlist
.
Where
(
x
=>
x
.
Sort
==
qitem
.
Sort
).
FirstOrDefault
();
qitem
.
Difficulty
=
qmodel
?.
Difficulty
??
""
;
qitem
.
KnowledgePoint
=
qmodel
?.
KnowledgePoint
??
""
;
qitem
.
QScore
=
qmodel
?.
Score
??
0
;
qitem
.
GroupName
=
qmodel
?.
GroupName
??
""
;
}
}
...
...
@@ -110,6 +112,7 @@ namespace EduSpider.Services
StuId
=
stuModel
.
StudId
,
StuName
=
stuModel
.
StudentName
,
examModel
.
ExamName
,
examModel
.
Type
,
sExamModel
?.
TScore
,
sExamModel
?.
Rank
,
sExamModel
?.
RankRate
,
...
...
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