Commit c0d0bacb authored by 黄奎's avatar 黄奎

1111

parent 4c40d46f
......@@ -139,17 +139,17 @@ WHERE 1=1
var First_Stu_HomeWork_Id = firstList.LastOrDefault().Stu_HomeWork_Id;
var tempModel = GetSystemCreateComment(commentList, cItem.course_id, First_Stu_HomeWork_Id);
var firstNum = CreateRandomNum();
var firstStartTime = firstList.LastOrDefault().CreateTime;
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);
}
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()
......@@ -199,17 +199,17 @@ WHERE 1=1
var Second_Stu_HomeWork_Id = secondList.LastOrDefault().Stu_HomeWork_Id;
var secondModel = GetSystemCreateComment(commentList, cItem.course_id, Second_Stu_HomeWork_Id);
var secondNum = CreateRandomNum();
var secondTime = secondList.LastOrDefault().CreateTime;
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);
}
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))
{
......@@ -259,17 +259,17 @@ WHERE 1=1
var Third_Stu_HomeWork_Id = thirdList.LastOrDefault().Stu_HomeWork_Id;
var thirdModel = GetSystemCreateComment(commentList, cItem.course_id, Third_Stu_HomeWork_Id);
var thirdNum = CreateRandomNum();
var thirdTime = thirdList.LastOrDefault().CreateTime;
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 (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()
......
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