|
@@ -6,6 +6,7 @@ using Microsoft.AspNetCore.Mvc;
|
|
|
using StackExchange.Redis;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
+using System.Data.SqlTypes;
|
|
|
using System.IO;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
@@ -81,7 +82,7 @@ namespace TEAMModelBI.Controllers.BIHome
|
|
|
int todayTchCnt = 0; //今日新增教师
|
|
|
int todayStuCnt = 0; //今日新增学生数
|
|
|
|
|
|
- long datetime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
|
|
|
+ long datetime = dateTime.ToUnixTimeMilliseconds();
|
|
|
string currentSql = "select value(count(c.id)) from c";
|
|
|
|
|
|
areaCnt = await CommonFind.GetSqlValueCount(cosmosClient, "Normal", currentSql, "Base-Area");
|
|
@@ -118,8 +119,8 @@ namespace TEAMModelBI.Controllers.BIHome
|
|
|
}
|
|
|
}
|
|
|
apiCnt = recCnts.Select(x => x.apiCnt.Select(s => s.count).Sum()).Sum();
|
|
|
-
|
|
|
- return Ok(new { state = 200, datetime, areaCnt, scCnt, tchCnt, stuCnt, todayScCnt, todayTchCnt, todayStuCnt, onStuCnt, onTchCnt, apiCnt });
|
|
|
+ string yymmss = TimeHelper.GetDateTime(datetime).ToString();
|
|
|
+ return Ok(new { state = 200, yymmss, datetime, areaCnt, scCnt, tchCnt, stuCnt, todayScCnt, todayTchCnt, todayStuCnt, onStuCnt, onTchCnt, apiCnt });
|
|
|
}
|
|
|
|
|
|
/// <summary>
|