From 62bdfc19cbb448a45e876869baed6c3decd4b231 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Thu, 29 Dec 2022 16:25:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=91=E7=9A=84=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/TaskManagePlat/TaskManageService.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs index f96b7a3d..45b71eef 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs @@ -316,7 +316,8 @@ namespace Myshipping.Application /// /// 是否强制计算 /// 返回回执 - public async Task GetCurrentTotalStat(bool isReCalc = false) + [HttpGet("/TaskManage/GetCurrentTotalStat")] + public async Task GetCurrentTotalStat([FromQuery]bool isReCalc = false) { TaskUserStatResultInfo resultInfo = new TaskUserStatResultInfo { LevelTop = new List(), @@ -388,7 +389,7 @@ namespace Myshipping.Application TopKey = TaskStatLevelEnum.EXCPTION.ToString(), Key = currEnum.ToString(), Name = currEnum.GetDescription(), - Total = exceptList.Sum(t => t.Total), + Total = t.Total, SortNo = (int)currEnum, ActionKey = $"{TaskStatLevelEnum.EXCPTION.ToString()}#{currEnum.ToString()}" }); @@ -422,7 +423,7 @@ namespace Myshipping.Application { Key = TaskStatLevelEnum.PERSON.ToString(), Name = TaskStatLevelEnum.PERSON.GetDescription(), - Total = exceptList.Sum(t => t.Total), + Total = personList.Sum(t => t.Total), SortNo = (int)TaskStatLevelEnum.PERSON, ActionKey = TaskStatLevelEnum.PERSON.ToString() }); @@ -437,7 +438,7 @@ namespace Myshipping.Application TopKey = TaskStatLevelEnum.PERSON.ToString(), Key = currEnum.ToString(), Name = currEnum.GetDescription(), - Total = exceptList.Sum(t => t.Total), + Total = t.Total, SortNo = (int)currEnum, ActionKey = $"{TaskStatLevelEnum.PERSON.ToString()}#{currEnum.ToString()}" }); @@ -471,7 +472,7 @@ namespace Myshipping.Application { Key = TaskStatLevelEnum.PUBLIC.ToString(), Name = TaskStatLevelEnum.PUBLIC.GetDescription(), - Total = exceptList.Sum(t => t.Total), + Total = publicList.Sum(t => t.Total), SortNo = (int)TaskStatLevelEnum.PUBLIC, ActionKey = TaskStatLevelEnum.PUBLIC.ToString() }); @@ -486,7 +487,7 @@ namespace Myshipping.Application TopKey = TaskStatLevelEnum.PUBLIC.ToString(), Key = currEnum.ToString(), Name = currEnum.GetDescription(), - Total = exceptList.Sum(t => t.Total), + Total = t.Total, SortNo = (int)currEnum, ActionKey = $"{TaskStatLevelEnum.PUBLIC.ToString()}#{currEnum.ToString()}" });