for (int j = 0; j < regions.size(); j++) {
Region region = regions.get(j);
String key = account + "|" + region + "|" + week;
double cost = costs.get(key) == null ? 0 : costs.get(key);
Double lastCost = week == 0 ? null : costs.get(account + "|" + region + "|" + (week - 1));
link = getLink("column", ConsolidateType.daily, appGroup, Lists.newArrayList(account), Lists.newArrayList(region), currentWeekEnd.minusWeeks(1), currentWeekEnd);
body.append(getValueCell(cost, lastCost, link, firstLine));
}
}
link = getLink("column", ConsolidateType.daily, appGroup, accounts, regions, currentWeekEnd.minusWeeks(1), currentWeekEnd);
body.append(getValueCell(total[week], week == 0 ? null : total[week - 1], link, firstLine));