Commit d5b356df authored by 黄奎's avatar 黄奎

111

parent 8c64b7bf
......@@ -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 = thirdList.LastOrDefault().CreateTime.AddMinutes(thirdNum),
CreateTime = thirdTime,
ShowType = 3,
Details = new List<RB_Stu_CommentDetails>()
};
......@@ -299,7 +270,7 @@ WHERE 1=1
Info = info,
CreateType = 1,
CreateByName = thirdList.LastOrDefault().ThName,
CreateTime = thirdList.LastOrDefault().CreateTime.AddMinutes(thirdNum),
CreateTime = thirdTime,
ShowType = 3,
});
new StuCommentRepository().SetStuCommentRepository(t_model);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment