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
d405723b
Commit
d405723b
authored
Aug 17, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取考试发布详情
parent
e9a51ddb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
4 deletions
+43
-4
RB_Examination_Student_ViewModel.cs
Edu.Model/ViewModel/Exam/RB_Examination_Student_ViewModel.cs
+5
-0
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+22
-0
RB_Examination_StudentRepository.cs
Edu.Repository/Exam/RB_Examination_StudentRepository.cs
+4
-4
ExamController.cs
Edu.WebApi/Controllers/Exam/ExamController.cs
+12
-0
No files found.
Edu.Model/ViewModel/Exam/RB_Examination_Student_ViewModel.cs
View file @
d405723b
...
...
@@ -14,5 +14,10 @@ namespace Edu.Model.ViewModel.Exam
/// 试卷发布编号
/// </summary>
public
string
QPublishIds
{
get
;
set
;
}
/// <summary>
/// 学员名称
/// </summary>
public
string
GuestName
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Module.Exam/PaperModule.cs
View file @
d405723b
...
...
@@ -803,5 +803,27 @@ namespace Edu.Module.Exam
}
return
flag
;
}
/// <summary>
/// 根据编号获取考试发布详情
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
public
RB_Examination_Publish_ViewModel
GetExaminationPublishModule
(
object
Id
)
{
var
extModel
=
examination_PublishRepository
.
GetEntity
<
RB_Examination_Publish_ViewModel
>(
Id
);
if
(
extModel
==
null
)
{
extModel
=
new
RB_Examination_Publish_ViewModel
();
}
if
(
extModel
!=
null
&&
extModel
.
Id
>
0
)
{
extModel
.
StudentList
=
examination_StudentRepository
.
GetExaminationStudentListRepository
(
new
RB_Examination_Student_ViewModel
()
{
PublishId
=
extModel
.
Id
});
}
return
extModel
;
}
}
}
Edu.Repository/Exam/RB_Examination_StudentRepository.cs
View file @
d405723b
...
...
@@ -24,8 +24,8 @@ namespace Edu.Repository.Exam
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*
FROM RB_Examination_Student AS A
SELECT A.*
,IFNULL(B.GuestName,'') AS GuestName
FROM RB_Examination_Student AS A
LEFT JOIN rb_order_guest AS B ON A.GuestId=B.Id
WHERE 1=1
"
);
if
(
query
!=
null
)
...
...
@@ -51,8 +51,8 @@ WHERE 1=1
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*
FROM RB_Examination_Student AS A
SELECT A.*
,IFNULL(B.GuestName,'') AS GuestName
FROM RB_Examination_Student AS A
LEFT JOIN rb_order_guest AS B ON A.GuestId=B.Id
WHERE 1=1
"
);
if
(
query
!=
null
)
...
...
Edu.WebApi/Controllers/Exam/ExamController.cs
View file @
d405723b
...
...
@@ -418,6 +418,18 @@ namespace Edu.WebApi.Controllers.Exam
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 根据编号获取考试发布详情
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetExamPublish
()
{
var
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
);
var
model
=
paperModule
.
GetExaminationPublishModule
(
Id
);
return
ApiResult
.
Success
(
data
:
model
);
}
/// <summary>
/// 获取发布考试分页列表
/// </summary>
...
...
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