caching op liste

This commit is contained in:
Ralph Soika 2025-08-27 21:40:54 +02:00
parent 5c16f68a43
commit 3a08e83581

View file

@ -96,10 +96,14 @@ public class OPListController implements Serializable {
*/
@SuppressWarnings("unchecked")
public List<ItemCollection> getInvoices(String _dbtrNumber) {
if (invoiceList != null) {
return invoiceList;
}
if (_dbtrNumber == null) {
return new ArrayList<ItemCollection>();
}
long l = System.currentTimeMillis();
logger.info("...compute getInvoices...");
// Compute all open invoices if TASK_ERSTELLUNG....
if (workflowController.getWorkitem().getTaskID() == 0
|| workflowController.getWorkitem().getTaskID() == TASK_ERSTELLUNG) {
@ -240,6 +244,7 @@ public class OPListController implements Serializable {
invoiceList = new ArrayList<ItemCollection>();
}
logger.info("...compute getInvoices completed in " + (System.currentTimeMillis() - l) + "ms");
return invoiceList;
}