diff --git a/config-data-executor/config-examples/removeFromSystem.xml b/config-data-executor/config-examples/removeFromSystem.xml index 7137082..230f728 100644 --- a/config-data-executor/config-examples/removeFromSystem.xml +++ b/config-data-executor/config-examples/removeFromSystem.xml @@ -1,28 +1,30 @@ + @@ -39,20 +41,19 @@ - - + @@ -69,6 +70,7 @@ + @@ -108,13 +110,18 @@ + @@ -131,17 +138,22 @@ + @@ -158,26 +170,33 @@ + @@ -194,15 +213,19 @@ - + diff --git a/config-data-executor/config-examples/unblock.xml b/config-data-executor/config-examples/unblock.xml index f1acdd7..48ef73e 100644 --- a/config-data-executor/config-examples/unblock.xml +++ b/config-data-executor/config-examples/unblock.xml @@ -4,16 +4,16 @@ diff --git a/config-data-executor/src/main/java/org/micord/service/RequestService.java b/config-data-executor/src/main/java/org/micord/service/RequestService.java index a434ba3..af21050 100644 --- a/config-data-executor/src/main/java/org/micord/service/RequestService.java +++ b/config-data-executor/src/main/java/org/micord/service/RequestService.java @@ -149,12 +149,16 @@ public class RequestService { private Map buildSqlQuery(SqlRequest request, List ids) { Map resultMap = new HashMap<>(); - String endpointArguments = "(" + ids.stream() + String endpointArguments = ids.stream() .map(id -> "'" + id.trim() + "'") - .collect(Collectors.joining(", ")) + ")"; + .collect(Collectors.joining(", ")); String requestURL = request.getRequestURL(); + if (!requestURL.contains("uuid[]")) { + endpointArguments = "(" + endpointArguments + ")"; + } + if (request.getRequestArguments() != null && !request.getRequestArguments().isEmpty()) { for (RequestArgument argument : request.getRequestArguments()) {