xxe 2 年之前
父節點
當前提交
3f8c90087a
共有 2 個檔案被更改,包括 1 行新增10 行删除
  1. +1
    -9
      HKCardOUT/Logic/Service/HKCore.cs
  2. +0
    -1
      HKCardOUT/ViewModels/RootViewModel.cs

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

@@ -17,13 +17,6 @@ namespace HKCardOUT.Logic.Service
{
public class HKCore
{
public void GetRecrod()
{
MemoryBus.CardRecord = DbContext.Context.Queryable<SaleLog>()
.Where(t => t.CreateTime.Year == DateTime.Now.Year)
.Where(t => t.CreateTime.Month == DateTime.Now.Month)
.Where(t => t.CreateTime.Day == DateTime.Now.Day).ToList();
}
List<SaleLog> Commom(SaleLog input)
{
if (DataBus.StartDevice)
@@ -33,7 +26,7 @@ namespace HKCardOUT.Logic.Service
HKLogImport.WriteInfo("设备出餐状态:" + checkDevice);
if (checkDevice) return null;
}
var Old = MemoryBus.CardRecord
var Old = DbContext.Context.Queryable<SaleLog>()
.Where(t => t.CardNo == input.CardNo)
.Where(t => t.CreateTime.Year == DateTime.Now.Year)
.Where(t => t.CreateTime.Month == DateTime.Now.Month)
@@ -308,7 +301,6 @@ namespace HKCardOUT.Logic.Service
entity.State = true;
HKLogImport.WriteInfo("正在写入数据库,当前数据:" + entity.ToJson());
DbContext.Context.Insertable(entity).CallEntityMethod(t => t.Create()).ExecuteReturnEntity();
GetRecrod();
}
}
}


+ 0
- 1
HKCardOUT/ViewModels/RootViewModel.cs 查看文件

@@ -37,7 +37,6 @@ namespace HKCardOUT.ViewModels
this.Closed += RootViewModel_Closed;
var serv = Container.Get<HKCore>();
serv.GetAllCardStatus();
serv.GetRecrod();
ProcessCard();
InsertData();
}


Loading…
取消
儲存