pry 2 years ago
parent
commit
4725f2db4a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      HKCardOUT/Logic/Service/HKCore.cs

+ 2
- 1
HKCardOUT/Logic/Service/HKCore.cs View File

@@ -257,7 +257,8 @@ namespace HKCardOUT.Logic.Service
/// <returns></returns>
public List<SaleLog> PullDaySaleLog(int screen)
{
var data = DbContext.Context.Queryable<SaleLog>()
var today = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
var data = DbContext.Context.Queryable<SaleLog>().Where(t => t.CreateTime >= today)
.WhereIF(screen == 0, t => t.Location == "3" || t.Location == "4")
.WhereIF(screen == 1, t => t.Location == "1" || t.Location == "2")
.WhereIF(screen == 2, t => t.Location == "5" || t.Location == "6")


Loading…
Cancel
Save