Subversion Repositories SmartDukaan

Rev

Rev 28453 | Rev 28455 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28453 Rev 28454
Line 1641... Line 1641...
1641
			Set<Integer> fofoIds = storeGuyMap.get(authUser.getEmailId());
1641
			Set<Integer> fofoIds = storeGuyMap.get(authUser.getEmailId());
1642
			if (emails.contains(authUser.getEmailId())) {
1642
			if (emails.contains(authUser.getEmailId())) {
1643
				fofoIds = storeGuyMap.get("tarun.verma@smartdukaan.com");
1643
				fofoIds = storeGuyMap.get("tarun.verma@smartdukaan.com");
1644
				LOGGER.info("fofoIds" + fofoIds);
1644
				LOGGER.info("fofoIds" + fofoIds);
1645
			}
1645
			}
1646
 
-
 
-
 
1646
			Map<Integer, CustomRetailer> customRetailerMap = null;
1647
			if (fofoIds != null) {
1647
			if (fofoIds != null) {
1648
 
1648
 
1649
				Map<Integer, List<Integer>> warehouseIdFofoIdMap = fofoStoreRepository
1649
				Map<Integer, List<Integer>> warehouseIdFofoIdMap = fofoStoreRepository
1650
						.selectActivePartnersByRetailerIds(new ArrayList<>(fofoIds)).stream()
1650
						.selectActivePartnersByRetailerIds(new ArrayList<>(fofoIds)).stream()
1651
						.collect(Collectors.groupingBy(FofoStore::getWarehouseId,
1651
						.collect(Collectors.groupingBy(FofoStore::getWarehouseId,
Line 1670... Line 1670...
1670
					ws.setTertiary(tertiary);
1670
					ws.setTertiary(tertiary);
1671
					ws.setWarehouseId(0);
1671
					ws.setWarehouseId(0);
1672
					warehouseStockMap.put(0, ws);
1672
					warehouseStockMap.put(0, ws);
1673
 
1673
 
1674
				}
1674
				}
-
 
1675
				customRetailerMap = retailerService
-
 
1676
						.getFofoRetailers(fofoIds.stream().map(x -> x).collect(Collectors.toList()));
1675
 
1677
 
1676
				warehouseStockMap.entrySet().stream().sorted(Map.Entry.comparingByKey(Comparator.reverseOrder()))
1678
				warehouseStockMap.entrySet().stream().sorted(Map.Entry.comparingByKey(Comparator.reverseOrder()))
1677
						.forEachOrdered(x -> warehouseStockSortedMap.put(x.getKey(), x.getValue()));
1679
						.forEachOrdered(x -> warehouseStockSortedMap.put(x.getKey(), x.getValue()));
1678
 
1680
 
1679
				rctSaholic = reporticoCacheTableRepository.selectByTableName("SaholicInventoryCIS");
1681
				rctSaholic = reporticoCacheTableRepository.selectByTableName("SaholicInventoryCIS");
Line 1726... Line 1728...
1726
						menus = menuRepository.selectAllByIds(menuIds);
1728
						menus = menuRepository.selectAllByIds(menuIds);
1727
					}
1729
					}
1728
				}
1730
				}
1729
			}
1731
			}
1730
 
1732
 
1731
			Map<Integer, CustomRetailer> customRetailerMap = retailerService
-
 
1732
					.getFofoRetailers(fofoIds.stream().map(x -> x).collect(Collectors.toList()));
-
 
1733
 
-
 
1734
			model.addAttribute("authId", authUser.getId());
1733
			model.addAttribute("authId", authUser.getId());
1735
 
1734
 
1736
			model.addAttribute("rctPartneStat", rctPartneStat);
1735
			model.addAttribute("rctPartneStat", rctPartneStat);
1737
 
1736
 
1738
			model.addAttribute("reporticoDate", rctSaholic);
1737
			model.addAttribute("reporticoDate", rctSaholic);