Skip to content

Instantly share code, notes, and snippets.

@akinsgre
Created June 4, 2010 13:38
Show Gist options
  • Save akinsgre/425420 to your computer and use it in GitHub Desktop.
Save akinsgre/425420 to your computer and use it in GitHub Desktop.
if (NON_NEGATIVE.containsInteger(startRecord)
&& NON_NEGATIVE.containsInteger(endRecord)
&& olbRequest.isDirtyFlag())
{
String orderBy = olbRequest.getOrderBy();
if (NON_NEGATIVE.containsInteger(categoryId)
&& customerId != null)
{
results = getAcctHistoryByCategory(tpc, startDate, endDate, orderBy, startRecord, endRecord, categoryId, customerId, aid);
}
else
{
results = getAcctHistoryByDate(tpc, aid, startDate, endDate, orderBy, startRecord, endRecord);
}
}
else
{
if (NON_NEGATIVE.containsInteger(categoryId)
&& customerId != null)
{
results = getAcctHistoryCategoryCount(tpc, startDate, endDate, customerId, aid, categoryId);
}
else
{
results = getAcctHistoryCount(tpc, aid, startDate, endDate);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment