Commit 5e4738d7 authored by 姜春辉's avatar 姜春辉

fix: bug

parent 23072434
...@@ -51,7 +51,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic ...@@ -51,7 +51,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic
if (visitor != null) if (visitor != null)
{ {
Program.speakService.VoiceBySoundPlayer("识别成功"); Program.speakService.VoiceBySoundPlayer("识别成功");
LogicHandler.HandlerIdentify(visitor, false, score); LogicHandler.HandlerIdentify(visitor, false, score);
return; return;
} }
...@@ -59,7 +59,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic ...@@ -59,7 +59,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic
if (employee != null) if (employee != null)
{ {
Program.speakService.VoiceBySoundPlayer("已识别"); Program.speakService.VoiceBySoundPlayer("已识别");
LogicHandler.HandlerIdentify(employee, false, score); LogicHandler.HandlerIdentify(employee, false, score);
return; return;
} }
...@@ -67,7 +67,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic ...@@ -67,7 +67,7 @@ namespace GS.Terminal.Identification.Enterprise.Logic
if (temp != null) if (temp != null)
{ {
Program.speakService.VoiceBySoundPlayer("已识别"); Program.speakService.VoiceBySoundPlayer("已识别");
LogicHandler.HandlerIdentify(temp, false, score); LogicHandler.HandlerIdentify(temp, false, score);
return; return;
} }
......
...@@ -251,7 +251,8 @@ namespace GS.Terminal.Identification.Enterprise.Logic.Core ...@@ -251,7 +251,8 @@ namespace GS.Terminal.Identification.Enterprise.Logic.Core
/// <returns></returns> /// <returns></returns>
internal static VisitInfo GetVisitInfoByCardNum(string cardNum) internal static VisitInfo GetVisitInfoByCardNum(string cardNum)
{ {
return VisitInfo.Where(ss => ss.CardNum == cardNum).FirstOrDefault(); cardNum = cardNum.ToUpper();
return VisitInfo.Where(ss => ss.CardNum != null && ss.CardNum.ToUpper().Contains(cardNum)).FirstOrDefault();
} }
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment