Commit 3aed852f authored by Marco Descher's avatar Marco Descher 🏔

Update misthios.js

parent 1b166f9d
......@@ -2,10 +2,11 @@ logger = Polyglot.import("logger");
coreModelService = Polyglot.import("coreModelService");
const Collectors = Java.type("java.util.stream.Collectors");
const sql = "SELECT CONCAT( cast(count(*) as char), ',' , MandantId) FROM behandlungen group by MandantId";
const sql = "SELECT count(*) , MandantId FROM behandlungen group by MandantId";
var stream = coreModelService.executeNativeQuery(sql);
var result = Java.from(stream.toArray());
for (var ar of result) {
print(ar);
var bla = Java.from(ar)
print(bla[0] + " " + bla[1])
}
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