Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
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
黄奎
Education
Commits
feb44e65
Commit
feb44e65
authored
Aug 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a5afba0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+9
-1
ExamController.cs
Edu.WebApi/Controllers/Exam/ExamController.cs
+4
-0
No files found.
Edu.Module.Exam/PaperModule.cs
View file @
feb44e65
...
...
@@ -870,6 +870,13 @@ namespace Edu.Module.Exam
{
List
<
ExamFolderTreeModel
>
list
=
new
List
<
ExamFolderTreeModel
>();
var
dataList
=
examination_PaperRepository
.
GetExaminationPaperListRepository
(
query
);
ExamFolderTreeModel
root
=
new
ExamFolderTreeModel
()
{
PaperId
=
0
,
ParentId
=
0
,
PaperName
=
"根目录"
,
ChildList
=
new
List
<
ExamFolderTreeModel
>()
};
if
(
dataList
!=
null
&&
dataList
.
Count
>
0
)
{
var
rootList
=
dataList
?.
Where
(
qitem
=>
qitem
.
ParentId
==
0
)?.
ToList
();
...
...
@@ -883,9 +890,10 @@ namespace Edu.Module.Exam
ChildList
=
new
List
<
ExamFolderTreeModel
>()
};
fTreeModel
.
ChildList
=
GetFolderChild
(
dataList
,
rItem
.
PaperId
);
l
ist
.
Add
(
fTreeModel
);
root
.
ChildL
ist
.
Add
(
fTreeModel
);
}
}
list
.
Add
(
root
);
return
list
;
}
...
...
Edu.WebApi/Controllers/Exam/ExamController.cs
View file @
feb44e65
...
...
@@ -499,6 +499,10 @@ namespace Edu.WebApi.Controllers.Exam
IsHalfScore
=
base
.
ParmJObj
.
GetInt
(
"IsHalfScore"
),
PublishPic
=
base
.
ParmJObj
.
GetStringValue
(
"PublishPic"
),
};
if
(
model
.
ExamStartTime
>
model
.
ExamEndTime
)
{
return
ApiResult
.
ParamIsNull
(
"考试开始时间不能大于结束时间!"
);
}
var
studentStr
=
base
.
ParmJObj
.
GetStringValue
(
"StudentList"
);
if
(!
string
.
IsNullOrEmpty
(
studentStr
))
{
...
...
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