Li 2 سال پیش
والد
کامیت
7ce2724122
2فایلهای تغییر یافته به همراه14 افزوده شده و 17 حذف شده
  1. 14 14
      TEAMModelBI/Tool/BIStatsWay/StudyStatsWay.cs
  2. 0 3
      TEAMModelOS.FunctionV4/HttpTrigger/BIHttpTrigger.cs

+ 14 - 14
TEAMModelBI/Tool/BIStatsWay/StudyStatsWay.cs

@@ -50,24 +50,24 @@ namespace TEAMModelBI.Tool.BIStatsWay
 
 
 
-            trains.ForEach(x =>
-            {
-                //线上研修
-                if (x.onlineTime == 0) studyStats++; else if (x.onlineTime >= setting.onlineTime) onLineCount++; else onLineCount++;
+            //trains.ForEach(x =>
+            //{
+            //    //线上研修
+            //    if (x.onlineTime == 0) studyStats++; else if (x.onlineTime >= setting.onlineTime) onLineCount++; else onLineCount++;
 
-                //线下研修
-                if (x.offlineTime == 0) offlineCount++; else if (x.onlineTime >= setting.offlineTime) offlineCount++; else offlineCount++;
+            //    //线下研修
+            //    if (x.offlineTime == 0) offlineCount++; else if (x.onlineTime >= setting.offlineTime) offlineCount++; else offlineCount++;
 
-                //课堂实录
-                if (x.classTime == 0) classRoomCount++; else if (x.classTime >= setting.classTime) classRoomCount++; else classRoomCount++;
+            //    //课堂实录
+            //    if (x.classTime == 0) classRoomCount++; else if (x.classTime >= setting.classTime) classRoomCount++; else classRoomCount++;
 
-                //认证材料
-                if (x.currency.submitTime == 0) submitCount++; else if (x.currency.submitTime >= setting.submitTime) submitCount++; else submitCount++;
+            //    //认证材料
+            //    if (x.currency.submitTime == 0) submitCount++; else if (x.currency.submitTime >= setting.submitTime) submitCount++; else submitCount++;
 
-                if (x.currency.submitTime == 0 && x.classTime == 0 && x.offlineTime == 0 && x.onlineTime == 0) noCount++;
-                else if (x.currency.submitTime >= setting.submitTime && x.classTime >= setting.classTime && x.onlineTime >= setting.offlineTime && x.onlineTime >= setting.onlineTime) fulfilCount++;
-                else carryOnCount++;
-            });
+            //    if (x.currency.submitTime == 0 && x.classTime == 0 && x.offlineTime == 0 && x.onlineTime == 0) noCount++;
+            //    else if (x.currency.submitTime >= setting.submitTime && x.classTime >= setting.classTime && x.onlineTime >= setting.offlineTime && x.onlineTime >= setting.onlineTime) fulfilCount++;
+            //    else carryOnCount++;
+            //});
 
 
 

+ 0 - 3
TEAMModelOS.FunctionV4/HttpTrigger/BIHttpTrigger.cs

@@ -33,11 +33,8 @@ namespace TEAMModelOS.FunctionV4.HttpTrigger
         [Function("stats-sc-info")]
         public HttpResponseData StatsSchoolInfo([HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] HttpRequestData req)
         {
-
             var response = req.CreateResponse(HttpStatusCode.OK);
-            response.Headers.Add("Content-Type", "text/plain; charset=utf-8");
 
-            response.WriteString("Welcome to Azure Functions!");
 
             return response;
         }