Commit 9fdfa99f authored by Marco Descher's avatar Marco Descher 🏔

dsddsdff

parent 4035b7d7
......@@ -2,12 +2,10 @@ logger = Polyglot.import("logger");
coreModelService = Polyglot.import("coreModelService");
const Collectors = Java.type("java.util.stream.Collectors");
const sql = 'SELECT COUNT(*),MandantID FROM BEHANDLUNGEN GROUP BY MandantID';
const sql = "SELECT CONCAT( cast(count(*) as char), ',' , lastupdate) FROM BEHANDLUNGEN group by lastupdate";
var stream = coreModelService.executeNativeQuery(sql);
print(stream);
var result = Java.from(stream.toArray());
print(result);
for(r of result) {
print(r);
}
var result = stream.toArray();
for (ar of result) {
print(ar);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment