2025-11-19 13:55
private void checkTreehasChildren(FormEntity formEntity, List<Map<String, Object>> treeDataList) {
if (Func.isEmpty(treeDataList)) {
return;
}
ForkJoinPool pool = null;
try {
pool = FuncBase.jeelowcodeForkJoinPool();
pool.submit(() -> treeDataList.parallelStream().forEach(dataMap -> {
Long id = Func.getMap2Long(dataMap, "id");
Map<String, Object> params = new HashMap<>();
params.put("pid",id);
SqlInfoQueryWrapper.Wrapper wrapper = this.getDataQueryWrapper(formEntity, params);
Map<String, Object> subMap = sqlService.getDataOneByPlus(wrapper);
boolean hasChildren = Func.isNotEmpty(subMap);
dataMap.put("hasChildren", hasChildren);
dataMap.put("leaf", !hasChildren);
})).get();
} catch (InterruptedException | ExecutionException e) {
throw new RuntimeException(e.getMessage());
} finally {
if (pool != null) {
pool.shutdown();
}
}
}
2025-11-17 16:09
https://doc.jeelowcode.com/my/version?projectId=1
可以通过git对比看一下修改哪些文件
用上一个版本创建git,在现在这个版本覆盖就可以了