Subversion Repositories SmartDukaan

Rev

Rev 35585 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35585 Rev 35854
Line 1481... Line 1481...
1481
        if (warehouseId != 0) {
1481
        if (warehouseId != 0) {
1482
            List<Integer> fofoIds = warehouseIdFofoIdMap.get(warehouseId);
1482
            List<Integer> fofoIds = warehouseIdFofoIdMap.get(warehouseId);
1483
            if (fofoIds != null) {
1483
            if (fofoIds != null) {
1484
                fofoIdAndallValues = fofoIdAndallValues.entrySet().stream().filter(x -> fofoIds.contains(x.getKey())).collect(Collectors.toMap(x -> x.getKey(), x -> x.getValue()));
1484
                fofoIdAndallValues = fofoIdAndallValues.entrySet().stream().filter(x -> fofoIds.contains(x.getKey())).collect(Collectors.toMap(x -> x.getKey(), x -> x.getValue()));
1485
            }
1485
            }
-
 
1486
        } else {
-
 
1487
            Set<Integer> finalAuthfofoIds = authfofoIds;
-
 
1488
            fofoIdAndallValues = fofoIdAndallValues.entrySet().stream().filter(x -> finalAuthfofoIds.contains(x.getKey())).collect(Collectors.toMap(x -> x.getKey(), x -> x.getValue()));
1486
        }
1489
        }
1487
        // warehouseId=0 means show all partner stats - no filtering needed
-
 
1488
        ChartInvestmentModel cm = adminUser.getAllStatePartnerType(fofoIdAndallValues);
1490
        ChartInvestmentModel cm = adminUser.getAllStatePartnerType(fofoIdAndallValues);
1489
        model.addAttribute("chartPieMap", gson.toJson(cm));
1491
        model.addAttribute("chartPieMap", gson.toJson(cm));
1490
 
1492
 
1491
        LOGGER.info("adminUserChart" + gson.toJson(cm));
1493
        LOGGER.info("adminUserChart" + gson.toJson(cm));
1492
 
1494