Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
fanxing3
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 25f1b65c
authored
Aug 19, 2022
by
毛树良
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
<fix>:任务下发资源校验逻辑优化
1 parent
1db8e8d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
fanxing-task/src/main/java/com/viontech/fanxing/task/utils/TaskUtils.java
fanxing-task/src/main/java/com/viontech/fanxing/task/utils/TaskUtils.java
View file @
25f1b65
...
...
@@ -67,7 +67,7 @@ public enum TaskUtils {
// 初始化资源检查对象
final
TaskChecking
taskChecking
=
new
TaskChecking
();
map
.
values
().
stream
().
forEach
(
x
->
taskChecking
.
addServer
(
x
));
tasks
.
stream
().
filter
(
x
->
x
.
getId
()
!=
taskData
.
getTask
().
getId
()).
map
(
x
->
new
TaskData
(
x
)).
forEach
(
x
->
taskChecking
.
addTask
(
x
));
tasks
.
stream
().
filter
(
x
->
x
.
getId
()
!=
taskData
.
getTask
().
getId
()
&&
(
StringUtils
.
isBlank
(
x
.
getVaType
())
||
x
.
getVaType
().
equals
(
taskData
.
getTask
().
getVaType
()))
).
map
(
x
->
new
TaskData
(
x
)).
forEach
(
x
->
taskChecking
.
addTask
(
x
));
taskChecking
.
addTask
(
taskData
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment