Subversion Repositories SmartDukaan

Rev

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

Rev 25827 Rev 25829
Line 772... Line 772...
772
 
772
 
773
		if (sendTo == null) {
773
		if (sendTo == null) {
774
			sendTo = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
774
			sendTo = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
775
					"amit.gupta@shop2020.in", "amod.sen@smartdukaan.com", "prakash.rai@smartdukaan.com");
775
					"amit.gupta@shop2020.in", "amod.sen@smartdukaan.com", "prakash.rai@smartdukaan.com");
776
		}
776
		}
777
		Map<String, List<? extends Serializable>> partnerSalesTargetRowsMap = new HashMap<>();
777
		Map<String, List<? extends Serializable>> partnerSalesTargetRowsMap = targetService.getDailySaleReportVsTarget();
778
		partnerSalesTargetRowsMap = targetService.getDailySaleReportVsTarget();
-
 
779
		Map<Integer, FofoStore> fofoStoresMap = fofoStoreRepository.selectActiveStores().stream()
778
		Map<Integer, FofoStore> fofoStoresMap = fofoStoreRepository.selectActiveStores().stream()
780
				.collect(Collectors.toMap(x -> x.getId(), x -> x));
779
				.collect(Collectors.toMap(x -> x.getId(), x -> x));
781
 
780
 
782
		Map<Integer, CustomRetailer> customRetailerMap = retailerService
781
		Map<Integer, CustomRetailer> customRetailerMap = retailerService
783
				.getFofoRetailers(new ArrayList<>(fofoStoresMap.keySet()));
782
				.getFofoRetailers(new ArrayList<>(fofoStoresMap.keySet()));
Line 785... Line 784...
785
		Map<String, CustomRetailer> customRetailerEmailMap = customRetailerMap.values().stream()
784
		Map<String, CustomRetailer> customRetailerEmailMap = customRetailerMap.values().stream()
786
				.collect(Collectors.toMap(x -> x.getEmail(), x -> x));
785
				.collect(Collectors.toMap(x -> x.getEmail(), x -> x));
787
 
786
 
788
		Map<String, SaleRoles> partnerEmailSalesMap = this.getPartnerEmailSalesMap();
787
		Map<String, SaleRoles> partnerEmailSalesMap = this.getPartnerEmailSalesMap();
789
 
788
 
790
		List<String> headers = Arrays.asList("Code", "Firm Name", "Store Name", "Current Category", "State Manager",
789
		List<String> headers = Arrays.asList("Code", "Firm Name", "Store Name","State Manager",
791
				"Teritory Manager", "Team Leader", "Targeted Category", "Targeted Value", "Target Achieved",
790
				"Teritory Manager", "Current Category", "Targeted Value", "Target Achieved",
792
				"Achived Percentage", "Remaining Target", "Today's Target", "Today's achievement");
791
				"Achived Percentage", "Remaining Target", "Today's Target", "Today's achievement");
793
 
792
 
794
		List<List<? extends Serializable>> rows = new ArrayList<>();
793
		List<List<? extends Serializable>> rows = new ArrayList<>();
795
		Map<String, List<? extends Serializable>> partnerRowMap = new HashMap<>();
794
		Map<String, List<? extends Serializable>> partnerRowMap = new HashMap<>();
796
		for (Map.Entry<String, List<? extends Serializable>> partnerSalesTargetRowEntry : partnerSalesTargetRowsMap
795
		for (Map.Entry<String, List<? extends Serializable>> partnerSalesTargetRowEntry : partnerSalesTargetRowsMap