|
|
@ -316,7 +316,8 @@ namespace Myshipping.Application
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="isReCalc">是否强制计算</param>
|
|
|
|
/// <param name="isReCalc">是否强制计算</param>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
public async Task<TaskUserStatResultInfo> GetCurrentTotalStat(bool isReCalc = false)
|
|
|
|
[HttpGet("/TaskManage/GetCurrentTotalStat")]
|
|
|
|
|
|
|
|
public async Task<TaskUserStatResultInfo> GetCurrentTotalStat([FromQuery]bool isReCalc = false)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TaskUserStatResultInfo resultInfo = new TaskUserStatResultInfo {
|
|
|
|
TaskUserStatResultInfo resultInfo = new TaskUserStatResultInfo {
|
|
|
|
LevelTop = new List<TaskUserStatItem>(),
|
|
|
|
LevelTop = new List<TaskUserStatItem>(),
|
|
|
@ -388,7 +389,7 @@ namespace Myshipping.Application
|
|
|
|
TopKey = TaskStatLevelEnum.EXCPTION.ToString(),
|
|
|
|
TopKey = TaskStatLevelEnum.EXCPTION.ToString(),
|
|
|
|
Key = currEnum.ToString(),
|
|
|
|
Key = currEnum.ToString(),
|
|
|
|
Name = currEnum.GetDescription(),
|
|
|
|
Name = currEnum.GetDescription(),
|
|
|
|
Total = exceptList.Sum(t => t.Total),
|
|
|
|
Total = t.Total,
|
|
|
|
SortNo = (int)currEnum,
|
|
|
|
SortNo = (int)currEnum,
|
|
|
|
ActionKey = $"{TaskStatLevelEnum.EXCPTION.ToString()}#{currEnum.ToString()}"
|
|
|
|
ActionKey = $"{TaskStatLevelEnum.EXCPTION.ToString()}#{currEnum.ToString()}"
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -422,7 +423,7 @@ namespace Myshipping.Application
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Key = TaskStatLevelEnum.PERSON.ToString(),
|
|
|
|
Key = TaskStatLevelEnum.PERSON.ToString(),
|
|
|
|
Name = TaskStatLevelEnum.PERSON.GetDescription(),
|
|
|
|
Name = TaskStatLevelEnum.PERSON.GetDescription(),
|
|
|
|
Total = exceptList.Sum(t => t.Total),
|
|
|
|
Total = personList.Sum(t => t.Total),
|
|
|
|
SortNo = (int)TaskStatLevelEnum.PERSON,
|
|
|
|
SortNo = (int)TaskStatLevelEnum.PERSON,
|
|
|
|
ActionKey = TaskStatLevelEnum.PERSON.ToString()
|
|
|
|
ActionKey = TaskStatLevelEnum.PERSON.ToString()
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -437,7 +438,7 @@ namespace Myshipping.Application
|
|
|
|
TopKey = TaskStatLevelEnum.PERSON.ToString(),
|
|
|
|
TopKey = TaskStatLevelEnum.PERSON.ToString(),
|
|
|
|
Key = currEnum.ToString(),
|
|
|
|
Key = currEnum.ToString(),
|
|
|
|
Name = currEnum.GetDescription(),
|
|
|
|
Name = currEnum.GetDescription(),
|
|
|
|
Total = exceptList.Sum(t => t.Total),
|
|
|
|
Total = t.Total,
|
|
|
|
SortNo = (int)currEnum,
|
|
|
|
SortNo = (int)currEnum,
|
|
|
|
ActionKey = $"{TaskStatLevelEnum.PERSON.ToString()}#{currEnum.ToString()}"
|
|
|
|
ActionKey = $"{TaskStatLevelEnum.PERSON.ToString()}#{currEnum.ToString()}"
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -471,7 +472,7 @@ namespace Myshipping.Application
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Key = TaskStatLevelEnum.PUBLIC.ToString(),
|
|
|
|
Key = TaskStatLevelEnum.PUBLIC.ToString(),
|
|
|
|
Name = TaskStatLevelEnum.PUBLIC.GetDescription(),
|
|
|
|
Name = TaskStatLevelEnum.PUBLIC.GetDescription(),
|
|
|
|
Total = exceptList.Sum(t => t.Total),
|
|
|
|
Total = publicList.Sum(t => t.Total),
|
|
|
|
SortNo = (int)TaskStatLevelEnum.PUBLIC,
|
|
|
|
SortNo = (int)TaskStatLevelEnum.PUBLIC,
|
|
|
|
ActionKey = TaskStatLevelEnum.PUBLIC.ToString()
|
|
|
|
ActionKey = TaskStatLevelEnum.PUBLIC.ToString()
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -486,7 +487,7 @@ namespace Myshipping.Application
|
|
|
|
TopKey = TaskStatLevelEnum.PUBLIC.ToString(),
|
|
|
|
TopKey = TaskStatLevelEnum.PUBLIC.ToString(),
|
|
|
|
Key = currEnum.ToString(),
|
|
|
|
Key = currEnum.ToString(),
|
|
|
|
Name = currEnum.GetDescription(),
|
|
|
|
Name = currEnum.GetDescription(),
|
|
|
|
Total = exceptList.Sum(t => t.Total),
|
|
|
|
Total = t.Total,
|
|
|
|
SortNo = (int)currEnum,
|
|
|
|
SortNo = (int)currEnum,
|
|
|
|
ActionKey = $"{TaskStatLevelEnum.PUBLIC.ToString()}#{currEnum.ToString()}"
|
|
|
|
ActionKey = $"{TaskStatLevelEnum.PUBLIC.ToString()}#{currEnum.ToString()}"
|
|
|
|
});
|
|
|
|
});
|
|
|
|