Subversion Repositories SmartDukaan

Rev

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

Rev 25316 Rev 25317
Line 673... Line 673...
673
			CustomRetailer retailer = customRetailerEmailMap.get(partnerSalesTargetRowEntry.getKey());
673
			CustomRetailer retailer = customRetailerEmailMap.get(partnerSalesTargetRowEntry.getKey());
674
			FofoStore fofoStore = fofoStoresMap.get(retailer.getPartnerId());
674
			FofoStore fofoStore = fofoStoresMap.get(retailer.getPartnerId());
675
			Serializable code = fofoStore.getCode();
675
			Serializable code = fofoStore.getCode();
676
			Serializable storeName = "SmartDukaan-" + fofoStore.getCode().substring(5);
676
			Serializable storeName = "SmartDukaan-" + fofoStore.getCode().substring(5);
677
			Serializable businessName = retailer.getBusinessName();
677
			Serializable businessName = retailer.getBusinessName();
-
 
678
			try {
678
			Serializable stateManager = storeManagerMap.get(retailer.getEmail()).get(2);
679
				Serializable stateManager = storeManagerMap.get(retailer.getEmail()).get(2);
679
			Serializable territoryManager = storeManagerMap.get(retailer.getEmail()).get(1);
680
				Serializable territoryManager = storeManagerMap.get(retailer.getEmail()).get(1);
680
			Serializable teamLeader = storeManagerMap.get(retailer.getEmail()).get(0);
681
				Serializable teamLeader = storeManagerMap.get(retailer.getEmail()).get(0);
681
			List<Serializable> row = new ArrayList<>(
682
				List<Serializable> row = new ArrayList<>(
682
					Arrays.asList(code, storeName, businessName, stateManager, territoryManager, teamLeader));
683
						Arrays.asList(code, storeName, businessName, stateManager, territoryManager, teamLeader));
683
			if (partnerSalesTargetRowsMap.get(retailer.getEmail()) != null) {
684
				if (partnerSalesTargetRowsMap.get(retailer.getEmail()) != null) {
684
				row.addAll(0, partnerSalesTargetRowsMap.get(retailer.getEmail()));
685
					row.addAll(0, partnerSalesTargetRowsMap.get(retailer.getEmail()));
685
				partnerRowMap.put(retailer.getEmail(), row);
686
					partnerRowMap.put(retailer.getEmail(), row);
686
				rows.add(row);
687
					rows.add(row);
-
 
688
				}
-
 
689
			} catch(Exception e) {
-
 
690
				LOGGER.warn("Could not find partner with email - {}", retailer.getEmail());
687
			}
691
			}
688
 
692
 
689
		}
693
		}
690
 
694
 
691
		Map<String, Set<String>> storeGuyMap = new HashMap<>();
695
		Map<String, Set<String>> storeGuyMap = new HashMap<>();