pry 2 年之前
父節點
當前提交
4725f2db4a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      HKCardOUT/Logic/Service/HKCore.cs

+ 2
- 1
HKCardOUT/Logic/Service/HKCore.cs 查看文件

@@ -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…
取消
儲存