Commit 5d245bca authored by 黄奎's avatar 黄奎

1111

parent b15f1ce2
......@@ -146,9 +146,17 @@ WHERE 1=1
foreach (var item in model.Details)
{
var tempList = homeworkList.Where(qitem => qitem.student_uid == item.StuUid).ToList();
item.CreateTime = tempList.LastOrDefault().add_time.AddSeconds(1);
var Score = tempList.Average(qitem => qitem.score_p) * 100;
decimal Score = 0;
string info = "";
if (tempList != null && tempList.Count > 0)
{
item.CreateTime = tempList.LastOrDefault().add_time.AddSeconds(1);
Score = tempList.Average(qitem => qitem.score_p) * 100;
}
else
{
item.CreateTime = DateTime.Now;
}
if (IsDefault == 1)
{
if (defaultComment != null && defaultComment.Details != null && defaultComment.Details.Count > 0)
......
......@@ -13,7 +13,7 @@ namespace EduSpider
{
static void Main(string[] args)
{
string str = VTX.FW.Helper.DESHepler.Decrypt("so00QKzN3w8=");
string str = VTX.FW.Helper.DESHepler.Decrypt("RjkM10Kzwf++Z+Qx+0veYQ==");
Console.WriteLine(str);
var stopTime = 1000 * 60 *2;
long times = 1;
......
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