|
@@ -108,11 +108,14 @@ public class BiSnapshotController : BaseController
|
|
|
public async Task<IList<HotspotDataStatisticsOutDto>> GetHotspotDataStatisticsAsync([FromQuery] HotspotDataStatisticsInDto dto)
|
|
|
{
|
|
|
var items = await _biSnapshotApplication.GetHotspotDataStatisticsAsync(dto).ToListAsync();
|
|
|
- items.Add(new HotspotDataStatisticsOutDto
|
|
|
+ if (items.Count != 0)
|
|
|
{
|
|
|
- Name = "合计",
|
|
|
- OrderCount = items.Sum(x => x.OrderCount),
|
|
|
- });
|
|
|
+ items.Add(new HotspotDataStatisticsOutDto
|
|
|
+ {
|
|
|
+ Name = "合计",
|
|
|
+ OrderCount = items.Sum(x => x.OrderCount),
|
|
|
+ });
|
|
|
+ }
|
|
|
return items;
|
|
|
}
|
|
|
|