Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
middleware-automatic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenjunjie
middleware-automatic
Commits
5eacaad8
Commit
5eacaad8
authored
Jun 17, 2024
by
liuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/06/17 ai标注接口 log日志bug修复
parent
6a2068de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceAiMark.java
+4
-4
No files found.
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceAiMark.java
View file @
5eacaad8
...
@@ -100,14 +100,14 @@ public class TaskServiceAiMark implements TaskService {
...
@@ -100,14 +100,14 @@ public class TaskServiceAiMark implements TaskService {
long
endTime
=
System
.
currentTimeMillis
()
-
now
;
long
endTime
=
System
.
currentTimeMillis
()
-
now
;
AiApiResult
aiRes
=
aiApiResultConversion
(
s
);
AiApiResult
aiRes
=
aiApiResultConversion
(
s
);
if
(
Objects
.
isNull
(
aiRes
))
{
if
(
Objects
.
isNull
(
aiRes
))
{
log
.
info
(
"数据url:{},耗时:{},ai接口返回信息不完整:{}"
,
param
.
getString
(
GenericAttribute
.
URL
),
endTime
,
s
);
log
.
info
(
"数据url:{},耗时:{},ai接口返回信息不完整:{}"
,
param
.
get
JSONObject
(
"data"
).
get
String
(
GenericAttribute
.
URL
),
endTime
,
s
);
return
null
;
return
null
;
}
}
log
.
info
(
"数据url:{},ai标签:{},耗时:{},具体数据:{}"
,
param
.
getString
(
GenericAttribute
.
URL
),
aiRes
.
getSent
(),
endTime
,
aiRes
.
getResult
());
log
.
info
(
"数据url:{},ai标签:{},耗时:{},具体数据:{}"
,
param
.
get
JSONObject
(
"data"
).
get
String
(
GenericAttribute
.
URL
),
aiRes
.
getSent
(),
endTime
,
aiRes
.
getResult
());
List
<
AIMark
.
TagRelation
>
tagRelations
=
aiParam
.
getAiMark
().
getTagRelations
();
List
<
AIMark
.
TagRelation
>
tagRelations
=
aiParam
.
getAiMark
().
getTagRelations
();
AIMark
.
TagRelation
tagRelation
=
tagRelations
.
stream
().
filter
(
e
->
relateValueVerify
(
e
,
aiRes
)).
findFirst
().
orElse
(
null
);
AIMark
.
TagRelation
tagRelation
=
tagRelations
.
stream
().
filter
(
e
->
relateValueVerify
(
e
,
aiRes
)).
findFirst
().
orElse
(
null
);
if
(
Objects
.
isNull
(
tagRelation
))
{
if
(
Objects
.
isNull
(
tagRelation
))
{
log
.
info
(
"数据url:{},ai标签:{},没有绑定关系,以过滤"
,
param
.
getString
(
GenericAttribute
.
URL
),
aiRes
.
getSent
());
log
.
info
(
"数据url:{},ai标签:{},没有绑定关系,以过滤"
,
param
.
get
JSONObject
(
"data"
).
get
String
(
GenericAttribute
.
URL
),
aiRes
.
getSent
());
return
null
;
return
null
;
}
}
JSONObject
json
=
aiParam
.
getJson
();
JSONObject
json
=
aiParam
.
getJson
();
...
@@ -117,7 +117,7 @@ public class TaskServiceAiMark implements TaskService {
...
@@ -117,7 +117,7 @@ public class TaskServiceAiMark implements TaskService {
json
.
put
(
GenericAttribute
.
ES_M_GROUP
,
aiParam
.
getAiMark
().
getProject
());
json
.
put
(
GenericAttribute
.
ES_M_GROUP
,
aiParam
.
getAiMark
().
getProject
());
json
.
put
(
GenericAttribute
.
ES_M_GROUP_ID
,
aiParam
.
getAiMark
().
getProjectId
());
json
.
put
(
GenericAttribute
.
ES_M_GROUP_ID
,
aiParam
.
getAiMark
().
getProjectId
());
MarkInfo
markInfo
=
MarkInfoUtil
.
transformToMarkInfo
(
json
);
MarkInfo
markInfo
=
MarkInfoUtil
.
transformToMarkInfo
(
json
);
log
.
info
(
"数据url:{},ai标签:{},标注标签:{},成功标注"
,
param
.
getString
(
GenericAttribute
.
URL
),
aiRes
.
getSent
(),
tagRelation
.
getName
());
log
.
info
(
"数据url:{},ai标签:{},标注标签:{},成功标注"
,
param
.
get
JSONObject
(
"data"
).
get
String
(
GenericAttribute
.
URL
),
aiRes
.
getSent
(),
tagRelation
.
getName
());
return
markInfo
;
return
markInfo
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment