xxe 2 years ago
parent
commit
3f8c90087a
2 changed files with 1 additions and 10 deletions
  1. +1
    -9
      HKCardOUT/Logic/Service/HKCore.cs
  2. +0
    -1
      HKCardOUT/ViewModels/RootViewModel.cs

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

@@ -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 View File

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


Loading…
Cancel
Save