Skip to content

Commit

Permalink
In the case of the Excel extraction for the investigation, now recove…
Browse files Browse the repository at this point in the history
…r all the questions
  • Loading branch information
mspasiano committed Oct 19, 2023
1 parent 5401e1b commit 6d276e9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2322,8 +2322,7 @@ public String extractionApplication(Session session, List<String> ids, String ty
Criteria criteriaDomande = CriteriaFactory.createCriteria(JCONONFolderType.JCONON_APPLICATION.queryName());
criteriaDomande.addColumn(PropertyIds.OBJECT_ID);
criteriaDomande.add(Restrictions.inTree(callObject.getId()));
criteriaDomande.add(Restrictions.eq(JCONONPropertyIds.APPLICATION_STATO_DOMANDA.value(), ApplicationService.StatoDomanda.CONFERMATA.getValue()));
criteriaDomande.add(Restrictions.isNull(JCONONPropertyIds.APPLICATION_ESCLUSIONE_RINUNCIA.value()));
criteriaDomande.add(Restrictions.ne(JCONONPropertyIds.APPLICATION_STATO_DOMANDA.value(), StatoDomanda.INIZIALE.getValue()));
ItemIterable<QueryResult> domande = criteriaDomande.executeQuery(session, false, session.getDefaultContext());
folderStream = StreamSupport.stream(domande.spliterator(), false)
.map(queryResult -> session.getObject(queryResult.<String>getPropertyValueById(PropertyIds.OBJECT_ID)))
Expand Down

0 comments on commit 6d276e9

Please sign in to comment.