Subversion Repositories SmartDukaan

Rev

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

Rev 27778 Rev 27819
Line 807... Line 807...
807
			LinkedHashMap<Integer, String> wm = new LinkedHashMap<Integer, String>();
807
			LinkedHashMap<Integer, String> wm = new LinkedHashMap<Integer, String>();
808
 
808
 
809
			Map<String, BrandWisePartnerSaleModel> partnersBrandSaleMap = null;
809
			Map<String, BrandWisePartnerSaleModel> partnersBrandSaleMap = null;
810
			List<BrandWisePartnerSaleModel> accessoriesBrandSales = null;
810
			List<BrandWisePartnerSaleModel> accessoriesBrandSales = null;
811
 
811
 
-
 
812
			Map<AuthUser, Long> authUserTicketCount = null;
-
 
813
 
812
			for (Map.Entry<Integer, String> entry : warehouseMap.entrySet()) {
814
			for (Map.Entry<Integer, String> entry : warehouseMap.entrySet()) {
813
				wm.put(entry.getKey(), entry.getValue());
815
				wm.put(entry.getKey(), entry.getValue());
814
			}
816
			}
815
 
817
 
816
			wm.put(0, "Total Values");
818
			wm.put(0, "Total Values");
Line 894... Line 896...
894
				accessoriesBrandSales = fofoStoreRepository
896
				accessoriesBrandSales = fofoStoreRepository
895
						.selectGroupByBrandAccesoriesWarehousePartnerSale(new ArrayList<>(fofoIds));
897
						.selectGroupByBrandAccesoriesWarehousePartnerSale(new ArrayList<>(fofoIds));
896
 
898
 
897
			}
899
			}
898
 
900
 
-
 
901
			if (positions.size() > 0) {
-
 
902
				if (positions.stream()
-
 
903
						.filter(x -> x.getEscalationType().equals(EscalationType.L3)
-
 
904
								|| x.getEscalationType().equals(EscalationType.L4)
-
 
905
								|| x.getEscalationType().equals(EscalationType.L5))
-
 
906
						.count() > 0) {
-
 
907
					authUserTicketCount = ticketRepository.selectAllAuthUserTicketCount(Optional.of(false));
-
 
908
				}
-
 
909
			}
-
 
910
 
899
			if (Arrays.asList("amit.gupta@shop2020.in", "tejbeer.kaur@shop2020.in", "manish.tiwari@smartdukaan.com")
911
			if (Arrays.asList("amit.gupta@shop2020.in", "tejbeer.kaur@shop2020.in", "manish.tiwari@smartdukaan.com")
900
					.contains(email))
912
					.contains(email))
901
 
913
 
902
			{
914
			{
903
				menus = menuRepository.selectAll();
915
				menus = menuRepository.selectAll();
Line 941... Line 953...
941
			model.addAttribute("rctPartneStat", rctPartneStat);
953
			model.addAttribute("rctPartneStat", rctPartneStat);
942
 
954
 
943
			model.addAttribute("reporticoDate", rctSaholic);
955
			model.addAttribute("reporticoDate", rctSaholic);
944
			model.addAttribute("warehousePartnerDetailMap", warehousePartnerDetailMap);
956
			model.addAttribute("warehousePartnerDetailMap", warehousePartnerDetailMap);
945
			model.addAttribute("warehouseMap", wm);
957
			model.addAttribute("warehouseMap", wm);
-
 
958
 
-
 
959
			model.addAttribute("authUserTicketCount", authUserTicketCount);
946
			model.addAttribute("warehouseStockMap", warehouseStockSortedMap);
960
			model.addAttribute("warehouseStockMap", warehouseStockSortedMap);
947
			model.addAttribute("brandSalesMap", partnersBrandSaleMap);
961
			model.addAttribute("brandSalesMap", partnersBrandSaleMap);
948
 
962
 
949
			model.addAttribute("accessoriesBrandSales", accessoriesBrandSales);
963
			model.addAttribute("accessoriesBrandSales", accessoriesBrandSales);
950
 
964