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
2409924d
Commit
2409924d
authored
Apr 26, 2023
by
liuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023年04月26 pair实例化bug
parent
c583acc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceCommon.java
+3
-4
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceTemplate.java
+4
-4
No files found.
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceCommon.java
View file @
2409924d
...
@@ -16,13 +16,12 @@ import com.zhiwei.middleware.automatic.son.util.CosineSimilarity;
...
@@ -16,13 +16,12 @@ import com.zhiwei.middleware.automatic.son.util.CosineSimilarity;
import
com.zhiwei.middleware.automatic.son.util.MarkInfoUtil
;
import
com.zhiwei.middleware.automatic.son.util.MarkInfoUtil
;
import
com.zhiwei.middleware.automatic.son.util.RedissonUtil
;
import
com.zhiwei.middleware.automatic.son.util.RedissonUtil
;
import
com.zhiwei.middleware.automatic.son.util.Tools
;
import
com.zhiwei.middleware.automatic.son.util.Tools
;
import
javafx.util.Pair
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.apache.commons.lang3.tuple.Pair
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -51,8 +50,8 @@ public class TaskServiceCommon implements TaskService {
...
@@ -51,8 +50,8 @@ public class TaskServiceCommon implements TaskService {
this
.
templateTitleService
=
templateTitleService
;
this
.
templateTitleService
=
templateTitleService
;
this
.
dubboHandler
=
dubboHandler
;
this
.
dubboHandler
=
dubboHandler
;
this
.
autoMarkExecutor
=
autoMarkExecutor
;
this
.
autoMarkExecutor
=
autoMarkExecutor
;
TYPE_MAP
.
put
(
TaskType
.
COMMON_TWO
.
getType
(),
new
Pair
<>
(
TaskType
.
COMMON_TWO
,
this
::
getMultiAutoInfo
));
TYPE_MAP
.
put
(
TaskType
.
COMMON_TWO
.
getType
(),
Pair
.
of
(
TaskType
.
COMMON_TWO
,
this
::
getMultiAutoInfo
));
TYPE_MAP
.
put
(
TaskType
.
COMMON_ONE
.
getType
(),
new
Pair
<>
(
TaskType
.
COMMON_ONE
,
this
::
getOneAutoInfo
));
TYPE_MAP
.
put
(
TaskType
.
COMMON_ONE
.
getType
(),
Pair
.
of
(
TaskType
.
COMMON_ONE
,
this
::
getOneAutoInfo
));
}
}
@Override
@Override
...
...
middleware-automatic-center-son/src/main/java/com/zhiwei/middleware/automatic/son/task/service/TaskServiceTemplate.java
View file @
2409924d
...
@@ -15,7 +15,7 @@ import com.zhiwei.middleware.automatic.son.util.CosineSimilarity;
...
@@ -15,7 +15,7 @@ import com.zhiwei.middleware.automatic.son.util.CosineSimilarity;
import
com.zhiwei.middleware.automatic.son.util.Tools
;
import
com.zhiwei.middleware.automatic.son.util.Tools
;
import
com.zhiwei.nlp.AggreeBootStarter
;
import
com.zhiwei.nlp.AggreeBootStarter
;
import
com.zhiwei.nlp.vo.KResult
;
import
com.zhiwei.nlp.vo.KResult
;
import
javafx.util
.Pair
;
import
org.apache.commons.lang3.tuple
.Pair
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.apache.logging.log4j.Logger
;
import
org.elasticsearch.index.query.BoolQueryBuilder
;
import
org.elasticsearch.index.query.BoolQueryBuilder
;
...
@@ -57,9 +57,9 @@ public class TaskServiceTemplate implements TaskService {
...
@@ -57,9 +57,9 @@ public class TaskServiceTemplate implements TaskService {
this
.
esDao
=
esDao
;
this
.
esDao
=
esDao
;
this
.
esIndexes
=
esIndexes
;
this
.
esIndexes
=
esIndexes
;
this
.
executor
=
executor
;
this
.
executor
=
executor
;
TYPE_MAP
.
put
(
TaskType
.
TEMPLATE
.
getType
(),
new
Pair
<>
(
TaskType
.
TEMPLATE
,
this
::
runTask
));
TYPE_MAP
.
put
(
TaskType
.
TEMPLATE
.
getType
(),
Pair
.
of
(
TaskType
.
TEMPLATE
,
this
::
runTask
));
TYPE_MAP
.
put
(
TaskType
.
TEMPLATE_MODIFY
.
getType
(),
new
Pair
<>
(
TaskType
.
TEMPLATE_MODIFY
,
this
::
templateModify
));
TYPE_MAP
.
put
(
TaskType
.
TEMPLATE_MODIFY
.
getType
(),
Pair
.
of
(
TaskType
.
TEMPLATE_MODIFY
,
this
::
templateModify
));
TYPE_MAP
.
put
(
TaskType
.
TEMPLATE_RESET
.
getType
(),
new
Pair
<>
(
TaskType
.
TEMPLATE_RESET
,
this
::
templateReset
));
TYPE_MAP
.
put
(
TaskType
.
TEMPLATE_RESET
.
getType
(),
Pair
.
of
(
TaskType
.
TEMPLATE_RESET
,
this
::
templateReset
));
}
}
@Override
@Override
...
...
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