Commit 8f614d2c 刘韬

1

1 个父辈 1d6ad21b
......@@ -68,11 +68,10 @@ namespace BLL
{
//return;
foreach (var tp in MatchTemplateList) {
LogNet.log.Info($"开始解析模版:{tp.Key}");
LogNet.log.Info($"===开始解析模版:{tp.Key}");
foreach (var m in tp.Value.MatchCollections) {
LogNet.log.Info($"开始解析关键字:{m.Key}");
//LogNet.log.Info($"匹配到关键字:{m.Key}");
string matchlist = m.Value.barcodeInfo.Text + "\t/\t";
foreach (var item in m.Value.Matchs)
{
......@@ -80,6 +79,7 @@ namespace BLL
}
LogNet.log.Info(matchlist);
}
LogNet.log.Info($"===结束解析模版:{tp.Key}");
}
}
public class TemplateCollection
......
......@@ -769,7 +769,7 @@ namespace BLL
//bool ismatch = true;
if (code.Length < codeMatch[i].MinLength)
ismatch = false;
MatchAnalysis.AddMatch(codeMatch[i].Keyword, ismatch, codeMatch[i].CodeID, $"长度小于:{codeMatch[i].MatchMinLength}", ismatch ? "OK" : "NG");
MatchAnalysis.AddMatch(codeMatch[i].Keyword, ismatch, codeMatch[i].CodeID, $"长度最小:{codeMatch[i].MinLength}", ismatch ? "OK" : "NG");
//if (!ismatch) return null;
}
......@@ -780,7 +780,7 @@ namespace BLL
//bool ismatch = true;
if (code.Length > codeMatch[i].MaxLength)
ismatch = false;
MatchAnalysis.AddMatch(codeMatch[i].Keyword, ismatch, codeMatch[i].CodeID, $"长度最大:{codeMatch[i].MatchMaxLength}", ismatch ? "OK" : "NG");
MatchAnalysis.AddMatch(codeMatch[i].Keyword, ismatch, codeMatch[i].CodeID, $"长度最大:{codeMatch[i].MaxLength}", ismatch ? "OK" : "NG");
}
if (!ismatch)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!