Browse Source

优化返回累计课例数

Li 3 years ago
parent
commit
1ccc8a338c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      TEAMModelBI/Controllers/Census/ActivitySticsController.cs

+ 2 - 2
TEAMModelBI/Controllers/Census/ActivitySticsController.cs

@@ -331,7 +331,7 @@ namespace TEAMModelBI.Controllers.Census
             int geCount = 0; //普教
             int heCount = 0; //高教
             int oeCount = 0; //其他教育
-
+            int allLess = 0; //所有课例
             int dayLess = 0;  //当天课例
             int weekLess = 0;  //周课例
             int monthLess = 0;  //月课例
@@ -465,7 +465,7 @@ namespace TEAMModelBI.Controllers.Census
                 teachCount = records.Where(r => r.tmdid != null).Where((x, i) => records.FindIndex(z => z.tmdid == x.tmdid) == i).ToList().Count;
             }
 
-            return Ok(new { state = 200, schoolCount = schools.Count, countArea, weekActivity, termActivity, totalTime, appraiseArea, examAreaCount, surveyAreaCount, voteAreaCount, homeworkAreaCount, major, standard, basics, oeCount, dayLess,weekLess,monthLess,termLess,teachCount, schools = schoolInfos, schoolLessons });
+            return Ok(new { state = 200, schoolCount = schools.Count, countArea, weekActivity, termActivity, totalTime, appraiseArea, examAreaCount, surveyAreaCount, voteAreaCount, homeworkAreaCount, major, standard, basics, oeCount, dayLess, weekLess, monthLess, termLess, teachCount, allLess = records.Count, schools = schoolInfos, schoolLessons });
         }
 
         /// <summary>