Removed wrong table header
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -18,8 +18,8 @@ public class MainAnalysis {
|
|||||||
Map<String,Map<String, Map<String, Integer>>> sales = _orm.getSalesCrossTable(2017);
|
Map<String,Map<String, Map<String, Integer>>> sales = _orm.getSalesCrossTable(2017);
|
||||||
List<String> articleNames = new ArrayList<>(sales.get("total").get("total").keySet());
|
List<String> articleNames = new ArrayList<>(sales.get("total").get("total").keySet());
|
||||||
Collections.sort(articleNames);
|
Collections.sort(articleNames);
|
||||||
System.out.print("City | Time | Sales | ");
|
System.out.print("City | Time | ");
|
||||||
int chars = 27;
|
int chars = 19;
|
||||||
for (String article : articleNames) {
|
for (String article : articleNames) {
|
||||||
if (article.equals("total")) continue;
|
if (article.equals("total")) continue;
|
||||||
System.out.print(article + " | ");
|
System.out.print(article + " | ");
|
||||||
@ -40,7 +40,7 @@ public class MainAnalysis {
|
|||||||
for (String time : times) {
|
for (String time : times) {
|
||||||
if (time.equals("total")) continue;
|
if (time.equals("total")) continue;
|
||||||
Map<String, Integer> productMap = timeMap.get(time);
|
Map<String, Integer> productMap = timeMap.get(time);
|
||||||
System.out.print(city + " | " + time + " | " );
|
System.out.print(city + " | quarter " + time + ", 2017 | " );
|
||||||
for (String article : articleNames) {
|
for (String article : articleNames) {
|
||||||
if (article.equals("total")) continue;
|
if (article.equals("total")) continue;
|
||||||
System.out.print(productMap.get(article) + " | ");
|
System.out.print(productMap.get(article) + " | ");
|
||||||
|
|||||||
Reference in New Issue
Block a user