Commit 25f1b65c by 毛树良

<fix>:任务下发资源校验逻辑优化

1 parent 1db8e8d2
......@@ -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);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!