瀏覽代碼

添加统计时间

master
fyf 2 年之前
父節點
當前提交
701f3de21b
共有 3 個檔案被更改,包括 6 行新增3 行删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

}
}

Loading…
取消
儲存