| Line 98... |
Line 98... |
| 98 |
sb.append("</table>");
|
98 |
sb.append("</table>");
|
| 99 |
|
99 |
|
| 100 |
|
100 |
|
| 101 |
List<WarehouseItemAgeingModel> warehouseAgeQtyModel = getAgeingModelsGtDays(startDate, endDate, 4);
|
101 |
List<WarehouseItemAgeingModel> warehouseAgeQtyModel = getAgeingModelsGtDays(startDate, endDate, 4);
|
| 102 |
sb.append("<br /><br /><b>Warehouse Stock</b>");
|
102 |
sb.append("<br /><br /><b>Warehouse Stock</b>");
|
| 103 |
sb.append("<table style='border:1px solid black'><thead>")
|
103 |
sb.append("<table style='border:1px solid black;border-collapse: collapse;' ><thead>")
|
| 104 |
.append("<th>No.</th>")
|
104 |
.append("<th>No.</th>")
|
| 105 |
.append("<th>Vendor</th>")
|
105 |
.append("<th>Vendor</th>")
|
| 106 |
.append("<th>Category</th>")
|
106 |
.append("<th>Category</th>")
|
| 107 |
.append("<th>Brand</th>")
|
107 |
.append("<th>Brand</th>")
|
| 108 |
.append("<th>Model</th>")
|
108 |
.append("<th>Model</th>")
|
| Line 148... |
Line 148... |
| 148 |
|
148 |
|
| 149 |
List<AuthUser> categoryAuthUserList = csService.getAuthUserIds(ProfitMandiConstants.TICKET_CATEGORY_ABM, Arrays.asList(EscalationType.L1, EscalationType.L2, EscalationType.L3));
|
149 |
List<AuthUser> categoryAuthUserList = csService.getAuthUserIds(ProfitMandiConstants.TICKET_CATEGORY_ABM, Arrays.asList(EscalationType.L1, EscalationType.L2, EscalationType.L3));
|
| 150 |
List<String> categoryTeamMails = categoryAuthUserList.stream().map(x -> x.getEmailId()).collect(Collectors.toList());
|
150 |
List<String> categoryTeamMails = categoryAuthUserList.stream().map(x -> x.getEmailId()).collect(Collectors.toList());
|
| 151 |
|
151 |
|
| 152 |
List<String> allEmails = new ArrayList<>(Arrays.asList(
|
152 |
List<String> allEmails = new ArrayList<>(Arrays.asList(
|
| 153 |
//"sm@smartdukaan.com",
|
153 |
"sm@smartdukaan.com",
|
| 154 |
//"tarun.verma@smartdukaan.com"
|
154 |
"tarun.verma@smartdukaan.com"
|
| 155 |
"amit.gupta@smartdukaan.com"
|
155 |
//"amit.gupta@smartdukaan.com"
|
| 156 |
));
|
156 |
));
|
| 157 |
|
157 |
|
| 158 |
// niranjan kala(authId -54) Team Emails,
|
158 |
// niranjan kala(authId -54) Team Emails,
|
| 159 |
List<Integer> allReportees = authService.getAllReportees(54);
|
159 |
List<Integer> allReportees = authService.getAllReportees(54);
|
| 160 |
List<AuthUser> authUsers = authRepository.selectAllAuthUserByIds(allReportees);
|
160 |
List<AuthUser> authUsers = authRepository.selectAllAuthUserByIds(allReportees);
|
| 161 |
List<String> categotyTeamEmails = authUsers.stream().map(x -> x.getEmailId()).collect(Collectors.toList());
|
161 |
List<String> categotyTeamEmails = authUsers.stream().map(x -> x.getEmailId()).collect(Collectors.toList());
|
| 162 |
|
162 |
|
| 163 |
//allEmails.addAll(categotyTeamEmails);
|
163 |
allEmails.addAll(categotyTeamEmails);
|
| 164 |
String[] emailTo = allEmails.toArray(new String[allEmails.size()]);
|
164 |
String[] emailTo = allEmails.toArray(new String[allEmails.size()]);
|
| 165 |
helper.setSubject(subject);
|
165 |
helper.setSubject(subject);
|
| 166 |
helper.setText(messageText, true);
|
166 |
helper.setText(messageText, true);
|
| 167 |
helper.setTo(emailTo);
|
167 |
helper.setTo(emailTo);
|
| 168 |
|
168 |
|