|
|
@@ -39,10 +39,13 @@ namespace HKCardOUT.Logic.Service |
|
|
|
if (condition1 || condition2 || condition1) |
|
|
|
{ |
|
|
|
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; |
|
|
|
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; |
|
|
|
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; |
|
|
|
|
|
|
|
|
|
|
|