Subversion Repositories SmartDukaan

Rev

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

Rev 25732 Rev 25733
Line 1705... Line 1705...
1705
				pushNotification(nc.getId(), devices);
1705
				pushNotification(nc.getId(), devices);
1706
 
1706
 
1707
			}
1707
			}
1708
 
1708
 
1709
		}
1709
		}
1710
 
-
 
-
 
1710
	    if(!focusedModelShortageReportMap.isEmpty()) {
1711
		String fileName = "Stock Alert-" + FormattingUtils.formatDate(LocalDateTime.now()) + ".csv";
1711
		String fileName = "Stock Alert-" + FormattingUtils.formatDate(LocalDateTime.now()) + ".csv";
1712
		Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMapping();
1712
		Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMapping();
1713
		Map<String, List<List<? extends Serializable>>> emailRowsMap = new HashMap<>();
1713
		Map<String, List<List<? extends Serializable>>> emailRowsMap = new HashMap<>();
1714
 
1714
 
1715
		focusedModelShortageReportMap.entrySet().forEach(x -> {
1715
		focusedModelShortageReportMap.entrySet().forEach(x -> {
Line 1752... Line 1752...
1752
				// TODO Auto-generated catch block
1752
				// TODO Auto-generated catch block
1753
				e1.printStackTrace();
1753
				e1.printStackTrace();
1754
			}
1754
			}
1755
 
1755
 
1756
		});
1756
		});
-
 
1757
	    }
1757
 
1758
 
1758
	}
1759
	}
1759
 
1760
 
1760
	private String getNotificationMessage(List<FocusedModelShortageModel> focusedModelShortageModel) {
1761
	private String getNotificationMessage(List<FocusedModelShortageModel> focusedModelShortageModel) {
1761
		StringBuilder sb = new StringBuilder();
1762
		StringBuilder sb = new StringBuilder();