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
d5b356df
Commit
d5b356df
authored
Jun 13, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
8c64b7bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
33 deletions
+4
-33
StuHomeWorkRepository.cs
EduSpider.Repository/StuHomeWorkRepository.cs
+4
-33
No files found.
EduSpider.Repository/StuHomeWorkRepository.cs
View file @
d5b356df
...
...
@@ -144,16 +144,6 @@ WHERE 1=1
var
tempModel
=
GetSystemCreateComment
(
commentList
,
cItem
.
course_id
,
First_Stu_HomeWork_Id
);
var
firstNum
=
CreateRandomNum
();
var
firstStartTime
=
firstList
.
LastOrDefault
().
CreateTime
.
AddSeconds
(
1
);
//var secondModel = homeWorkList.Where(qitem => qitem.RowNum == 6).FirstOrDefault();
//if (secondModel != null)
//{
// var newSeconds = CreateRandomSecondNum(firstStartTime, secondModel.CreateTime);
// firstStartTime = firstStartTime.AddSeconds(newSeconds);
//}
//else
//{
// firstStartTime = firstStartTime.AddMinutes(firstNum);
//}
if
(
tempModel
==
null
||
(
tempModel
!=
null
&&
tempModel
.
Id
<=
0
))
{
var
f_model
=
new
RB_Stu_Comment_Extend
()
...
...
@@ -204,16 +194,6 @@ WHERE 1=1
var
secondModel
=
GetSystemCreateComment
(
commentList
,
cItem
.
course_id
,
Second_Stu_HomeWork_Id
);
var
secondNum
=
CreateRandomNum
();
var
secondTime
=
secondList
.
LastOrDefault
().
CreateTime
.
AddSeconds
(
1
);
//var thirdModel = homeWorkList.Where(qitem => qitem.RowNum == 10).FirstOrDefault();
//if (thirdModel != null)
//{
// var newSeconds = CreateRandomSecondNum(secondTime, thirdModel.CreateTime);
// secondTime = secondTime.AddSeconds(newSeconds);
//}
//else
//{
// secondTime = secondTime.AddMinutes(secondNum);
//}
if
(
secondModel
==
null
||
(
secondModel
!=
null
&&
secondModel
.
Id
<=
0
))
{
...
...
@@ -264,16 +244,7 @@ WHERE 1=1
var
thirdModel
=
GetSystemCreateComment
(
commentList
,
cItem
.
course_id
,
Third_Stu_HomeWork_Id
);
var
thirdNum
=
CreateRandomNum
();
var
thirdTime
=
thirdList
.
LastOrDefault
().
CreateTime
.
AddSeconds
(
1
);
var
fourthModel
=
homeWorkList
.
Where
(
qitem
=>
qitem
.
RowNum
==
14
).
FirstOrDefault
();
//if (fourthModel != null)
//{
// var newSeconds = CreateRandomSecondNum(thirdTime, fourthModel.CreateTime);
// thirdTime = thirdTime.AddSeconds(newSeconds);
//}
//else
//{
// thirdTime = thirdTime.AddMinutes(thirdNum);
//}
if
(
thirdModel
==
null
||
(
thirdModel
!=
null
&&
thirdModel
.
Id
<=
0
))
{
var
t_model
=
new
RB_Stu_Comment_Extend
()
...
...
@@ -283,7 +254,7 @@ WHERE 1=1
CourseId
=
cItem
.
course_id
,
CreateType
=
1
,
CreateByName
=
thirdList
.
LastOrDefault
().
ThName
,
CreateTime
=
third
List
.
LastOrDefault
().
CreateTime
.
AddMinutes
(
thirdNum
)
,
CreateTime
=
third
Time
,
ShowType
=
3
,
Details
=
new
List
<
RB_Stu_CommentDetails
>()
};
...
...
@@ -299,7 +270,7 @@ WHERE 1=1
Info
=
info
,
CreateType
=
1
,
CreateByName
=
thirdList
.
LastOrDefault
().
ThName
,
CreateTime
=
third
List
.
LastOrDefault
().
CreateTime
.
AddMinutes
(
thirdNum
)
,
CreateTime
=
third
Time
,
ShowType
=
3
,
});
new
StuCommentRepository
().
SetStuCommentRepository
(
t_model
);
...
...
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