Insight
continue 2024-11-19 14:12:25 +08:00
commit cacf4ff730
3 changed files with 8 additions and 9 deletions

View File

@ -213,7 +213,7 @@ namespace OpenAuth.App.ServiceApp
UserName = b.Name,
TaskCount = SqlFunc.AggregateCount(a.Id),
TuBanCount = SqlFunc.AggregateSum(a.EndNum - a.BeginNum),
}).ToListAsync();
}).MergeTable().OrderByDescending((t)=>t.TuBanCount).ToListAsync();
return new Response<List<UserOrGroupTaskResp>>
{
@ -234,7 +234,7 @@ namespace OpenAuth.App.ServiceApp
UserName = c.Name,
TaskCount = SqlFunc.AggregateCount(a.Id),
TuBanCount = SqlFunc.AggregateSum(a.EndNum - a.BeginNum),
}).ToListAsync();
}).MergeTable().OrderByDescending((t) => t.TuBanCount).ToListAsync();
return new Response<List<UserOrGroupTaskResp>>
{

View File

@ -35,23 +35,23 @@ namespace OpenAuth.App.ServiceApp.Response
/// <summary>
/// 影像生产
/// </summary>
public string ShpProduction { get; set; }
public int ShpProduction { get; set; }
/// <summary>
/// 解译
/// </summary>
public string ShpInterpretation { get; set; }
public int ShpInterpretation { get; set; }
/// <summary>
/// 研判分析
/// </summary>
public string Judgment { get; set; }
public int Judgment { get; set; }
/// <summary>
/// 图斑推送
/// </summary>
public string Push { get; set; }
public int Push { get; set; }
/// <summary>
/// 费用
/// </summary>
public string Cost { get; set; }
public double Cost { get; set; }
/// <summary>
/// 格式
/// </summary>

View File

@ -22,7 +22,7 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
/// <summary>
/// 小组或人员统计
/// </summary>
/// <param name="type">1-小组2-人员</param>
/// <param name="type">2-小组1-人员</param>
/// <param name="dateType">1-本月2-本周3-本日</param>
/// <returns></returns>
[HttpGet]
@ -47,7 +47,6 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
/// <param name="endTime"></param>
/// <returns></returns>
[HttpGet]
[AllowAnonymous]
public async Task<Response<AiShpDataExpenseAccountingTableResp>> GetAiShpDataExpenseAccountingTable(DateTime beginTime, DateTime endTime)
{
Response<AiShpDataExpenseAccountingTableResp> response = new Response<AiShpDataExpenseAccountingTableResp>();