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
8c64b7bf
Commit
8c64b7bf
authored
Jun 13, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
56524419
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
CourseQuery.cs
EduSpider.Model/Query/CourseQuery.cs
+5
-0
StuCommentDetailsRepository.cs
EduSpider.Repository/StuCommentDetailsRepository.cs
+1
-2
StuHomeWorkRepository.cs
EduSpider.Repository/StuHomeWorkRepository.cs
+4
-0
No files found.
EduSpider.Model/Query/CourseQuery.cs
View file @
8c64b7bf
...
...
@@ -71,5 +71,10 @@ namespace EduSpider.Model.Query
/// 默认评价编号
/// </summary>
public
int
DefaultCommentId
{
get
;
set
;
}
/// <summary>
/// 学员作业编号
/// </summary>
public
long
Stu_HomeWork_Id
{
get
;
set
;
}
}
}
EduSpider.Repository/StuCommentDetailsRepository.cs
View file @
8c64b7bf
...
...
@@ -32,7 +32,6 @@ namespace EduSpider.Repository
StuUid
=
item
.
StuUid
,
HomeWorkId
=
item
.
HomeWorkId
,
}).
FirstOrDefault
();
if
(
VTX
.
FW
.
Helper
.
ConvertHelper
.
FormatDate
(
item
.
CreateTime
)
!=
""
)
{
...
...
@@ -49,7 +48,7 @@ namespace EduSpider.Repository
var
homeWorkModel
=
new
StuHomeWorkRepository
().
GetStuHomeWorkDetailsListRepository
(
new
CourseQuery
()
{
CourseId
=
item
.
CourseId
,
HomeWork
Id
=
item
.
HomeWorkId
,
Stu_HomeWork_
Id
=
item
.
HomeWorkId
,
StuIds
=
item
.
StuUid
.
ToString
()
}).
FirstOrDefault
();
if
(
homeWorkModel
!=
null
)
...
...
EduSpider.Repository/StuHomeWorkRepository.cs
View file @
8c64b7bf
...
...
@@ -61,6 +61,10 @@ WHERE 1=1
{
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Stu_HomeWork_Extend
.
homework_id
),
query
.
HomeWorkId
);
}
if
(
query
.
Stu_HomeWork_Id
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Stu_HomeWork_Extend
.
stu_homework_id
),
query
.
Stu_HomeWork_Id
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
QHomeWorkIds
))
{
builder
.
AppendFormat
(
" AND A.{0} IN({1}) "
,
nameof
(
RB_Stu_HomeWork_Extend
.
homework_id
),
query
.
QHomeWorkIds
);
...
...
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