Browse Source

上次提交代码更改

leiy 11 months ago
parent
commit
6b536344f5

+ 5 - 3
OASystem/OASystem.Infrastructure/Repositories/Groups/TeamRateRepository.cs

@@ -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
                 //var gbpData = teamRateDescViews.Find(it => it.CurrencyCode.Equals("GBP"));
                 //if (gbpData != null) { teamRateDescViews.Remove(gbpData); teamRateDescViews.Insert(6, gbpData); }
 
-                _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;