| Line 287... |
Line 287... |
| 287 |
@Autowired
|
287 |
@Autowired
|
| 288 |
private SchemeService schemeService;
|
288 |
private SchemeService schemeService;
|
| 289 |
|
289 |
|
| 290 |
private static final String[] STOCK_AGEING_MAIL_LIST = new String[] { "uday.singh@smartudkaan.com",
|
290 |
private static final String[] STOCK_AGEING_MAIL_LIST = new String[] { "uday.singh@smartudkaan.com",
|
| 291 |
"adeel.yazdani@smartdukaan.com", "kamini.sharma@smartdukaan.com", "mohinder.mutreja@smartdukaan.com",
|
291 |
"adeel.yazdani@smartdukaan.com", "kamini.sharma@smartdukaan.com", "mohinder.mutreja@smartdukaan.com",
|
| 292 |
"ankit.bhatia@smartdukaan.com", "tarun.verma@smartdukaan.com", "hemant.kaura@smartdukaan.com",
|
292 |
"ankit.bhatia@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
| 293 |
"rajat.gupta@smartdukaan.com", "kuldeep.kumar@smartdukaan.com", "manish.gupta@smartdukaan.com" };
|
293 |
"rajat.gupta@smartdukaan.com", "kuldeep.kumar@smartdukaan.com", "manish.gupta@smartdukaan.com" };
|
| 294 |
|
294 |
|
| 295 |
private static final String[] ITEMWISE_PENDING_INDENT_MAIL_LIST = new String[] { "kamini.sharma@smartdukaan.com",
|
295 |
private static final String[] ITEMWISE_PENDING_INDENT_MAIL_LIST = new String[] { "kamini.sharma@smartdukaan.com",
|
| 296 |
"tarun.verma@smartdukaan.com", "uday.singh@smartdukaan.com", "kuldeep.kumar@smartdukaan.com",
|
296 |
"tarun.verma@smartdukaan.com", "uday.singh@smartdukaan.com", "kuldeep.kumar@smartdukaan.com",
|
| 297 |
"niranjan.kala@smartdukaan.com" };
|
297 |
"niranjan.kala@smartdukaan.com" };
|
| Line 961... |
Line 961... |
| 961 |
String[] sendToArray = new String[] { storeGuyEntry.getKey() };
|
961 |
String[] sendToArray = new String[] { storeGuyEntry.getKey() };
|
| 962 |
Utils.sendMailWithAttachment(googleMailSender, sendToArray, null, "Franchise Investment Summary", "PFA",
|
962 |
Utils.sendMailWithAttachment(googleMailSender, sendToArray, null, "Franchise Investment Summary", "PFA",
|
| 963 |
fileName, new ByteArrayResource(baos.toByteArray()));
|
963 |
fileName, new ByteArrayResource(baos.toByteArray()));
|
| 964 |
}
|
964 |
}
|
| 965 |
sendTo = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
965 |
sendTo = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
| 966 |
"hemant.kaura@smartdukaan.com", "neeraj.gupta@smartdukaan.com", "amit.gupta@shop2020.in",
|
966 |
"neeraj.gupta@smartdukaan.com", "amit.gupta@shop2020.in",
|
| 967 |
"manish.gupta@smartdukaan.com", "niranjan.kala@smartdukaan.com");
|
967 |
"manish.gupta@smartdukaan.com", "niranjan.kala@smartdukaan.com");
|
| 968 |
}
|
968 |
}
|
| 969 |
|
969 |
|
| 970 |
ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, rows);
|
970 |
ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, rows);
|
| 971 |
String[] sendToArray = sendTo.toArray(new String[sendTo.size()]);
|
971 |
String[] sendToArray = sendTo.toArray(new String[sendTo.size()]);
|
| Line 1081... |
Line 1081... |
| 1081 |
|
1081 |
|
| 1082 |
}
|
1082 |
}
|
| 1083 |
|
1083 |
|
| 1084 |
public void sendAgeingReport() throws Exception {
|
1084 |
public void sendAgeingReport() throws Exception {
|
| 1085 |
sendAgeingReport("kamini.sharma@smartdukaan.com", "amit.babu@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
1085 |
sendAgeingReport("kamini.sharma@smartdukaan.com", "amit.babu@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
| 1086 |
"niranjan.kala@smartdukaan.com", "manish.gupta@smartdukaan.com", "kuldeep.kumar@smartdukaan.com",
|
1086 |
"niranjan.kala@smartdukaan.com", "manish.gupta@smartdukaan.com", "kuldeep.kumar@smartdukaan.com"
|
| 1087 |
"hemant.kaura@smartdukaan.com");
|
1087 |
);
|
| 1088 |
}
|
1088 |
}
|
| 1089 |
|
1089 |
|
| 1090 |
public void moveImeisToPriceDropImeis() throws Exception {
|
1090 |
public void moveImeisToPriceDropImeis() throws Exception {
|
| 1091 |
List<PriceDrop> priceDrops = priceDropRepository.selectAll();
|
1091 |
List<PriceDrop> priceDrops = priceDropRepository.selectAll();
|
| 1092 |
for (PriceDrop priceDrop : priceDrops) {
|
1092 |
for (PriceDrop priceDrop : priceDrops) {
|
| Line 1633... |
Line 1633... |
| 1633 |
String[] customerEmail = null;
|
1633 |
String[] customerEmail = null;
|
| 1634 |
if (customer.getEmailId() != null) {
|
1634 |
if (customer.getEmailId() != null) {
|
| 1635 |
customerEmail = new String[] { customer.getEmailId() };
|
1635 |
customerEmail = new String[] { customer.getEmailId() };
|
| 1636 |
}
|
1636 |
}
|
| 1637 |
List<String> bccTo = Arrays.asList("kamini.sharma@smartdukaan.com",
|
1637 |
List<String> bccTo = Arrays.asList("kamini.sharma@smartdukaan.com",
|
| 1638 |
"tarun.verma@smartdukaan.com", "hemant.kaura@smartdukaan.com",
|
1638 |
"tarun.verma@smartdukaan.com",
|
| 1639 |
"niranjan.kala@smartdukaan.com", "sm@smartdukaan.com", "tejbeer.kaur@shop2020.in",
|
1639 |
"niranjan.kala@smartdukaan.com", "sm@smartdukaan.com", "tejbeer.kaur@shop2020.in",
|
| 1640 |
customRetailer.getEmail());
|
1640 |
customRetailer.getEmail());
|
| 1641 |
List<String> authUserEmails = csService.getAuthUserByPartnerId(customRetailer.getPartnerId());
|
1641 |
List<String> authUserEmails = csService.getAuthUserByPartnerId(customRetailer.getPartnerId());
|
| 1642 |
if (authUserEmails != null) {
|
1642 |
if (authUserEmails != null) {
|
| 1643 |
authUserEmails = new ArrayList<>();
|
1643 |
authUserEmails = new ArrayList<>();
|
| Line 2595... |
Line 2595... |
| 2595 |
|
2595 |
|
| 2596 |
Map<Integer, AuthUser> assignAuthUserMap = authRepository.selectAllAuthUserByIds(assignTo).stream()
|
2596 |
Map<Integer, AuthUser> assignAuthUserMap = authRepository.selectAllAuthUserByIds(assignTo).stream()
|
| 2597 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
2597 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
| 2598 |
|
2598 |
|
| 2599 |
List<String> sendTo = Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
2599 |
List<String> sendTo = Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
| 2600 |
"hemant.kaura@smartdukaan.com", "niranjan.kala@smartdukaan.com", "sm@smartdukaan.com",
|
2600 |
"niranjan.kala@smartdukaan.com", "sm@smartdukaan.com",
|
| 2601 |
"tejbeer.kaur@shop2020.in");
|
2601 |
"tejbeer.kaur@shop2020.in");
|
| 2602 |
LOGGER.info("partnerProblem" + partnerProblems);
|
2602 |
LOGGER.info("partnerProblem" + partnerProblems);
|
| 2603 |
StringBuilder sb = new StringBuilder();
|
2603 |
StringBuilder sb = new StringBuilder();
|
| 2604 |
sb.append("<htl><body>");
|
2604 |
sb.append("<htl><body>");
|
| 2605 |
sb.append(
|
2605 |
sb.append(
|