|
@@ -945,6 +945,7 @@ namespace Hotline.Api.Controllers
|
|
HotspotId = it.HotspotId.Substring(SqlFunc.MappingColumn<int>("0"), SqlFunc.MappingColumn<int>("2")),
|
|
HotspotId = it.HotspotId.Substring(SqlFunc.MappingColumn<int>("0"), SqlFunc.MappingColumn<int>("2")),
|
|
})
|
|
})
|
|
.MergeTable()
|
|
.MergeTable()
|
|
|
|
+ .Where(it => it.HotspotId != "18")
|
|
.GroupBy(it => it.HotspotId)//对新表进行分组
|
|
.GroupBy(it => it.HotspotId)//对新表进行分组
|
|
.Select(it => new
|
|
.Select(it => new
|
|
{
|
|
{
|
|
@@ -961,8 +962,6 @@ namespace Hotline.Api.Controllers
|
|
num = it.num
|
|
num = it.num
|
|
}).ToListAsync();
|
|
}).ToListAsync();
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
////数据查询-查询总数前5的数据
|
|
////数据查询-查询总数前5的数据
|
|
//var listHot = await _orderRepository.Queryable()
|
|
//var listHot = await _orderRepository.Queryable()
|
|
// .Where(p => p.StartTime >= startDate && p.StartTime <= endDate && p.Status > EOrderStatus.WaitForAccept)
|
|
// .Where(p => p.StartTime >= startDate && p.StartTime <= endDate && p.Status > EOrderStatus.WaitForAccept)
|
|
@@ -1014,7 +1013,7 @@ namespace Hotline.Api.Controllers
|
|
AllCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.Status > EOrderStatus.WaitForAccept, 1, 0)) + 7079457,
|
|
AllCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.Status > EOrderStatus.WaitForAccept, 1, 0)) + 7079457,
|
|
AllTrandCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.Status >= EOrderStatus.Filed, 1, 0)) + 7079214,
|
|
AllTrandCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.Status >= EOrderStatus.Filed, 1, 0)) + 7079214,
|
|
DayCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.CreationTime >= startDate && p.CreationTime <= endDate && p.Status > EOrderStatus.WaitForAccept, 1, 0)),
|
|
DayCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.CreationTime >= startDate && p.CreationTime <= endDate && p.Status > EOrderStatus.WaitForAccept, 1, 0)),
|
|
- DayTrandCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.FiledTime >= startDate && p.FiledTime <= endDate && p.Status >= EOrderStatus.Filed, 1, 0)),
|
|
|
|
|
|
+ DayTrandCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.CreationTime >= startDate && p.CreationTime <= endDate && p.FiledTime >= startDate && p.FiledTime <= endDate && p.Status >= EOrderStatus.Filed, 1, 0)),
|
|
})
|
|
})
|
|
.FirstAsync();
|
|
.FirstAsync();
|
|
return OpenResponse.Ok(WebPortalDeResponse<GetStatistDto>.Success(getStatistDto));
|
|
return OpenResponse.Ok(WebPortalDeResponse<GetStatistDto>.Success(getStatistDto));
|