|
@@ -35,7 +35,7 @@ namespace HKCardOUT.Logic.Service |
|
|
var condition1 = (DateTime.Now.Hour >= AM[0] && DateTime.Now.Hour < AM[1]); |
|
|
var condition1 = (DateTime.Now.Hour >= AM[0] && DateTime.Now.Hour < AM[1]); |
|
|
var condition2 = (DateTime.Now.Hour >= PM[0] && DateTime.Now.Hour < PM[1]); |
|
|
var condition2 = (DateTime.Now.Hour >= PM[0] && DateTime.Now.Hour < PM[1]); |
|
|
var condition3 = (DateTime.Now.Hour >= AT[0] && DateTime.Now.Hour < AT[1]); |
|
|
var condition3 = (DateTime.Now.Hour >= AT[0] && DateTime.Now.Hour < AT[1]); |
|
|
|
|
|
|
|
|
|
|
|
HKLog.HKLogImport.WriteInfo($"当前刷卡时间_条件1:{condition1}_条件2:{condition2}_条件3:{condition3}"); |
|
|
if (condition1 || condition2 || condition1) |
|
|
if (condition1 || condition2 || condition1) |
|
|
{ |
|
|
{ |
|
|
var AMDay = Old.Where(t => t.CreateTime.Hour >= AM[0] && t.CreateTime.Hour < AM[1]).Count(); |
|
|
var AMDay = Old.Where(t => t.CreateTime.Hour >= AM[0] && t.CreateTime.Hour < AM[1]).Count(); |
|
@@ -49,6 +49,7 @@ namespace HKCardOUT.Logic.Service |
|
|
var entity = DbContext.Context.Insertable(input).CallEntityMethod(t => t.Create()).ExecuteReturnEntity(); |
|
|
var entity = DbContext.Context.Insertable(input).CallEntityMethod(t => t.Create()).ExecuteReturnEntity(); |
|
|
if (entity.Id != Guid.Empty) |
|
|
if (entity.Id != Guid.Empty) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); |
|
|
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); |
|
|
if (!DataBus.IsTest) |
|
|
if (!DataBus.IsTest) |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|
Main.GetInstance.Start(input.Location.AsInt()); |
|
|