|
@@ -11,6 +11,7 @@ using Serilog;
|
|
|
using SqlSugar;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
+using System.Diagnostics;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
@@ -41,6 +42,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
{
|
|
|
|
|
|
Result result = new() { Code = -2 };
|
|
|
+ Stopwatch stopwatch = Stopwatch.StartNew();
|
|
|
|
|
|
GroupNameDto groupNameDto = new GroupNameDto() { PortType = dto.PortType };
|
|
|
var groups = await _deleInfoRep.GetGroupNameList(groupNameDto);
|
|
@@ -91,7 +93,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
|
|
|
|
|
|
|
|
|
- _data = new { GroupData = groups.Data, TeamRateData = PostGroupTeamRateHot() };
|
|
|
+ _data = new { GroupData = groups.Data, TeamRateData = await PostGroupTeamRateHot() };
|
|
|
|
|
|
}
|
|
|
else if (dto.PortType == 2)
|
|
@@ -104,9 +106,9 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+ stopwatch.Stop();
|
|
|
result.Code = 0;
|
|
|
- result.Msg = "查询成功!";
|
|
|
+ result.Msg = $"查询成功!耗时:{stopwatch.ElapsedMilliseconds / 1000}s";
|
|
|
result.Data = _data;
|
|
|
|
|
|
return result;
|