mirror of
https://github.com/valitydev/adapter-flow-lib.git
synced 2024-11-06 08:15:19 +00:00
Fix get card data (#8)
This commit is contained in:
parent
4ae1db1be5
commit
a99037996a
2
pom.xml
2
pom.xml
@ -13,7 +13,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>adapter-flow-lib</artifactId>
|
<artifactId>adapter-flow-lib</artifactId>
|
||||||
<version>0.0.4</version>
|
<version>0.0.5</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>adapter-flow-lib</name>
|
<name>adapter-flow-lib</name>
|
||||||
|
@ -18,16 +18,7 @@ public class TagManagementService {
|
|||||||
Optional<String> first = adapterProperties.getTagGeneratorFieldNames().stream()
|
Optional<String> first = adapterProperties.getTagGeneratorFieldNames().stream()
|
||||||
.filter(s -> StringUtils.hasText(parameters.get(s)))
|
.filter(s -> StringUtils.hasText(parameters.get(s)))
|
||||||
.findFirst();
|
.findFirst();
|
||||||
return first.get();
|
return adapterProperties.getTagPrefix() + parameters.get(first.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
@SneakyThrows
|
|
||||||
public String get(Map<String, String> parameters) {
|
|
||||||
Optional<String> first = adapterProperties.getTagGeneratorFieldNames().stream()
|
|
||||||
.filter(s -> StringUtils.hasText(parameters.get(s)))
|
|
||||||
.findFirst();
|
|
||||||
return first.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user