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
8683c1c8
Commit
8683c1c8
authored
Sep 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6dce3431
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
6 deletions
+20
-6
RB_Examination_Publish_ViewModel.cs
Edu.Model/ViewModel/Exam/RB_Examination_Publish_ViewModel.cs
+5
-0
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+9
-2
RB_Examination_PublishRepository.cs
Edu.Repository/Exam/RB_Examination_PublishRepository.cs
+3
-3
AppletIndexController.cs
Edu.WebApi/Controllers/Applet/AppletIndexController.cs
+3
-1
No files found.
Edu.Model/ViewModel/Exam/RB_Examination_Publish_ViewModel.cs
View file @
8683c1c8
...
...
@@ -70,5 +70,10 @@ namespace Edu.Model.ViewModel.Exam
return
list
;
}
}
/// <summary>
/// 学员考试表编号
/// </summary>
public
int
Exam_Student_Id
{
get
;
set
;
}
}
}
Edu.Module.Exam/PaperModule.cs
View file @
8683c1c8
...
...
@@ -1485,7 +1485,7 @@ namespace Edu.Module.Exam
/// <param name="list">学生题目数据</param>
/// <returns></returns>
[
TransactionCallHandler
]
public
virtual
bool
SetStuExamPaperDetailsModule
(
int
PublishId
,
int
GuestId
,
int
PaperId
,
int
UserGroupId
,
List
<
RB_Examination_Details_ViewModel
>
list
)
public
virtual
bool
SetStuExamPaperDetailsModule
(
int
PublishId
,
int
GuestId
,
int
PaperId
,
int
UserGroupId
,
List
<
RB_Examination_Details_ViewModel
>
list
,
int
Exam_Student_Id
)
{
bool
flag
=
false
;
var
modelPublish
=
GetExaminationPublishModule
(
PublishId
);
...
...
@@ -1538,8 +1538,15 @@ namespace Edu.Module.Exam
{
new
WhereHelper
(
nameof
(
RB_Examination_Student_ViewModel
.
PaperId
),
PaperId
),
new
WhereHelper
(
nameof
(
RB_Examination_Student_ViewModel
.
PublishId
),
PublishId
),
new
WhereHelper
(
nameof
(
RB_Examination_Student_ViewModel
.
GuestId
),
GuestId
),
};
if
(
Exam_Student_Id
>
0
)
{
wheres
.
Add
(
new
WhereHelper
(
nameof
(
RB_Examination_Student_ViewModel
.
Id
),
Exam_Student_Id
));
}
else
{
wheres
.
Add
(
new
WhereHelper
(
nameof
(
RB_Examination_Student_ViewModel
.
GuestId
),
GuestId
));
}
flag
=
examination_StudentRepository
.
Update
(
fileds
,
wheres
);
}
var
config
=
GetExaminationConfigureModel
(
new
RB_Examination_Configure_ViewModel
()
...
...
Edu.Repository/Exam/RB_Examination_PublishRepository.cs
View file @
8683c1c8
...
...
@@ -104,9 +104,9 @@ WHERE 1=1
var
parameters
=
new
DynamicParameters
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*,IFNULL(B.PaperName,'') AS PaperName,c.ExamStatus
FROM RB_Examination_Publish AS A
LEFT
JOIN rb_examination_paper AS B ON A.PaperId=B.PaperId
LEFT
JOIN rb_examination_student as c on c.PublishId=a.Id
SELECT A.*,IFNULL(B.PaperName,'') AS PaperName,c.ExamStatus
,C.Id AS Exam_Student_Id
FROM RB_Examination_Publish AS A
INNER
JOIN rb_examination_paper AS B ON A.PaperId=B.PaperId
INNER
JOIN rb_examination_student as c on c.PublishId=a.Id
WHERE 1=1 and a.ExamineStatus=2 and b.ExamineStatus=2
"
);
if
(
query
!=
null
)
...
...
Edu.WebApi/Controllers/Applet/AppletIndexController.cs
View file @
8683c1c8
...
...
@@ -158,6 +158,7 @@ namespace Edu.WebApi.Controllers.Applet
},
paperList
=
examinationPublishList
.
Select
(
x
=>
new
{
x
.
Exam_Student_Id
,
x
.
PaperId
,
x
.
Id
,
x
.
PaperName
,
...
...
@@ -584,6 +585,7 @@ namespace Edu.WebApi.Controllers.Applet
var
PublishId
=
base
.
ParmJObj
.
GetInt
(
"PublishId"
);
var
GuestId
=
base
.
ParmJObj
.
GetInt
(
"GuestId"
,
0
);
var
PaperId
=
base
.
ParmJObj
.
GetInt
(
"PaperId"
);
var
Exam_Student_Id
=
base
.
ParmJObj
.
GetInt
(
"Exam_Student_Id"
);
List
<
RB_Examination_Details_ViewModel
>
paperDetailsList
=
new
List
<
RB_Examination_Details_ViewModel
>();
string
groups
=
base
.
ParmJObj
.
GetStringValue
(
"GroupList"
);
if
(!
string
.
IsNullOrEmpty
(
groups
))
...
...
@@ -638,7 +640,7 @@ namespace Edu.WebApi.Controllers.Applet
{
Group_Id
=
base
.
AppletUserInfo
.
Group_Id
;
}
var
result
=
paperModule
.
SetStuExamPaperDetailsModule
(
PublishId
,
GuestId
,
PaperId
,
Group_Id
,
paperDetailsList
);
var
result
=
paperModule
.
SetStuExamPaperDetailsModule
(
PublishId
,
GuestId
,
PaperId
,
Group_Id
,
paperDetailsList
,
Exam_Student_Id
);
return
result
?
ApiResult
.
Success
(
"提交试卷成功"
)
:
ApiResult
.
Failed
(
"提交试卷失败"
);
}
...
...
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