|
|
@@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|