Browse Source

添加统计时间

master
fyf 2 years ago
parent
commit
701f3de21b
3 changed files with 6 additions and 3 deletions
  1. +2
    -2
      DataVApi.Order/OrderProvider.cs
  2. +4
    -0
      DataVApi.Order/RequestModel/FullScreenBasic.cs
  3. +0
    -1
      DataVApi.Order/RequestModel/FullScreenInput.cs

+ 2
- 2
DataVApi.Order/OrderProvider.cs View File

@@ -89,8 +89,8 @@ WHERE
var data = db.SqlQueryable<OrderLineDto>(sql).ToList();

List<object> res = new List<object>();
for (int index = 10; index >= 0; index--)
int indexcount = input.Count.HasValue ? input.Count.Value : 10;
for (int index = indexcount; index >= 0; index--)
{
var temp = DateTime.Now.AddDays(-index);
var end = DateTime.Parse(temp.ToString("yyyy-MM-dd 23:59:59"));


+ 4
- 0
DataVApi.Order/RequestModel/FullScreenBasic.cs View File

@@ -16,5 +16,9 @@ namespace DataVApi.Order.RequestModel
/// 设备Id
/// </summary>
public int? DeviceId { get; set; }
/// <summary>
/// 统计数量
/// </summary>
public int? Count { get; set; }
}
}

+ 0
- 1
DataVApi.Order/RequestModel/FullScreenInput.cs View File

@@ -16,6 +16,5 @@ namespace DataVApi.Order.RequestModel
/// 结束时间
/// </summary>
public DateTime? End { get; set; }

}
}

Loading…
Cancel
Save