caching op liste
This commit is contained in:
parent
5c16f68a43
commit
3a08e83581
1 changed files with 6 additions and 1 deletions
|
|
@ -96,10 +96,14 @@ public class OPListController implements Serializable {
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public List<ItemCollection> getInvoices(String _dbtrNumber) {
|
public List<ItemCollection> getInvoices(String _dbtrNumber) {
|
||||||
|
if (invoiceList != null) {
|
||||||
|
return invoiceList;
|
||||||
|
}
|
||||||
if (_dbtrNumber == null) {
|
if (_dbtrNumber == null) {
|
||||||
return new ArrayList<ItemCollection>();
|
return new ArrayList<ItemCollection>();
|
||||||
}
|
}
|
||||||
|
long l = System.currentTimeMillis();
|
||||||
|
logger.info("...compute getInvoices...");
|
||||||
// Compute all open invoices if TASK_ERSTELLUNG....
|
// Compute all open invoices if TASK_ERSTELLUNG....
|
||||||
if (workflowController.getWorkitem().getTaskID() == 0
|
if (workflowController.getWorkitem().getTaskID() == 0
|
||||||
|| workflowController.getWorkitem().getTaskID() == TASK_ERSTELLUNG) {
|
|| workflowController.getWorkitem().getTaskID() == TASK_ERSTELLUNG) {
|
||||||
|
|
@ -240,6 +244,7 @@ public class OPListController implements Serializable {
|
||||||
invoiceList = new ArrayList<ItemCollection>();
|
invoiceList = new ArrayList<ItemCollection>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.info("...compute getInvoices completed in " + (System.currentTimeMillis() - l) + "ms");
|
||||||
return invoiceList;
|
return invoiceList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue