Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
NS100
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1a344cac
由
刘韬
编写于
2026-02-11 21:20:45 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
优化匹配日志输出
1 个父辈
f2a55c49
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
BLL/MatchAnalysis.cs
BLL/MaterialEdit.cs
BLL/MatchAnalysis.cs
查看文件 @
1a344ca
...
@@ -55,7 +55,8 @@ namespace BLL
...
@@ -55,7 +55,8 @@ namespace BLL
//MatchTemplateList[CurrnetTemplateName].MatchCollections[matchKey].Matchs.Add(match);
//MatchTemplateList[CurrnetTemplateName].MatchCollections[matchKey].Matchs.Add(match);
}
}
public
static
void
MatchResult
(
string
matchKey
,
bool
isMatch
)
{
public
static
void
MatchResult
(
string
matchKey
,
bool
isMatch
,
string
matchtxt
)
{
LogNet
.
log
.
Info
(
$
"Match result:isMatch:{isMatch},{matchKey}={matchtxt}"
);
if
(!
MatchTemplateList
[
CurrnetTemplateName
].
BarcodeMatchs
[
CurrnetBarcode
.
Text
].
MatchCollections
.
ContainsKey
(
matchKey
))
if
(!
MatchTemplateList
[
CurrnetTemplateName
].
BarcodeMatchs
[
CurrnetBarcode
.
Text
].
MatchCollections
.
ContainsKey
(
matchKey
))
return
;
return
;
MatchTemplateList
[
CurrnetTemplateName
].
BarcodeMatchs
[
CurrnetBarcode
.
Text
].
MatchCollections
[
matchKey
].
isMatch
=
isMatch
;
MatchTemplateList
[
CurrnetTemplateName
].
BarcodeMatchs
[
CurrnetBarcode
.
Text
].
MatchCollections
[
matchKey
].
isMatch
=
isMatch
;
...
...
BLL/MaterialEdit.cs
查看文件 @
1a344ca
...
@@ -785,7 +785,7 @@ namespace BLL
...
@@ -785,7 +785,7 @@ namespace BLL
if
(!
ismatch
)
if
(!
ismatch
)
continue
;
continue
;
MatchAnalysis
.
MatchResult
(
codeMatch
[
i
].
Keyword
,
true
);
MatchAnalysis
.
MatchResult
(
codeMatch
[
i
].
Keyword
,
true
,
filtercode
);
if
(
key
.
ContainsKey
(
codeMatch
[
i
].
Keyword
))
if
(
key
.
ContainsKey
(
codeMatch
[
i
].
Keyword
))
{
{
LogNet
.
log
.
Info
(
$
"匹配冲突 [{codeMatch[i].Keyword}], {key[codeMatch[i].Keyword]} != {filtercode}"
);
LogNet
.
log
.
Info
(
$
"匹配冲突 [{codeMatch[i].Keyword}], {key[codeMatch[i].Keyword]} != {filtercode}"
);
...
@@ -793,6 +793,7 @@ namespace BLL
...
@@ -793,6 +793,7 @@ namespace BLL
}
}
else
else
key
.
Add
(
codeMatch
[
i
].
Keyword
,
filtercode
.
Trim
());
key
.
Add
(
codeMatch
[
i
].
Keyword
,
filtercode
.
Trim
());
if
(
codeMatch
[
i
].
Characteristic
)
if
(
codeMatch
[
i
].
Characteristic
)
{
{
Identification
=
true
;
Identification
=
true
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论