|
|
@@ -40,13 +40,13 @@ namespace HKCardOUT.Logic.Service |
|
|
|
{ |
|
|
|
var AMDay = Old.Where(t => t.CreateTime.Hour >= AM[0] && t.CreateTime.Hour < AM[1]).Count(); |
|
|
|
HKLog.HKLogImport.WriteInfo($"卡号{input.CardNo}上午消费次数:{AMDay}"); |
|
|
|
if (AMDay > 0) return false; |
|
|
|
if (AMDay > 1) return false; |
|
|
|
var PMDay = Old.Where(t => t.CreateTime.Hour >= PM[0] && t.CreateTime.Hour < PM[1]).Count(); |
|
|
|
HKLog.HKLogImport.WriteInfo($"卡号{input.CardNo}中午消费次数:{AMDay}"); |
|
|
|
if (PMDay > 0) return false; |
|
|
|
if (PMDay > 1) return false; |
|
|
|
var ATDay = Old.Where(t => t.CreateTime.Hour >= AT[0] && t.CreateTime.Hour < AT[1]).Count(); |
|
|
|
HKLog.HKLogImport.WriteInfo($"卡号{input.CardNo}下午消费次数:{AMDay}"); |
|
|
|
if (ATDay > 0) return false; |
|
|
|
if (ATDay > 1) return false; |
|
|
|
|
|
|
|
|
|
|
|
var entity = DbContext.Context.Insertable(input).CallEntityMethod(t => t.Create()).ExecuteReturnEntity(); |
|
|
|