|
|
@@ -90,7 +90,6 @@ WHERE |
|
|
|
|
|
|
|
List<object> res = new List<object>(); |
|
|
|
|
|
|
|
|
|
|
|
for (int index = 0; index < 10; index++) |
|
|
|
{ |
|
|
|
var temp = DateTime.Now.AddDays(-index); |
|
|
@@ -107,7 +106,7 @@ WHERE |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
return res; |
|
|
|
return new { data= res }; |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 区域销售 |
|
|
@@ -160,7 +159,7 @@ WHERE |
|
|
|
|
|
|
|
return new |
|
|
|
{ |
|
|
|
Data = loc.GroupBy(t => t.City).Select(t => new LocSaleDto |
|
|
|
data = loc.GroupBy(t => t.City).Select(t => new LocSaleDto |
|
|
|
{ |
|
|
|
City = string.IsNullOrEmpty(t.Key)?"未知": t.Key, |
|
|
|
Count = t.Sum(t => t.Count) |
|
|
|