|
|
@@ -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") |
|
|
|