| Line 4669... |
Line 4669... |
| 4669 |
Utils.sendMailWithAttachment(googleMailSender, sendToArray, new String[] { "tarun.verma@smartdukaan.com" },
|
4669 |
Utils.sendMailWithAttachment(googleMailSender, sendToArray, new String[] { "tarun.verma@smartdukaan.com" },
|
| 4670 |
"Samsung Rebilling IMEI Summary", "PFA", fileName, new ByteArrayResource(baos.toByteArray()));
|
4670 |
"Samsung Rebilling IMEI Summary", "PFA", fileName, new ByteArrayResource(baos.toByteArray()));
|
| 4671 |
}
|
4671 |
}
|
| 4672 |
}
|
4672 |
}
|
| 4673 |
|
4673 |
|
| 4674 |
|
- |
|
| 4675 |
|
- |
|
| 4676 |
public void monthlyTargetForInternalTeam() throws MessagingException, ProfitMandiBusinessException, IOException {
|
4674 |
public void monthlyTargetForInternalTeam() throws MessagingException, ProfitMandiBusinessException, IOException {
|
| 4677 |
|
4675 |
|
| 4678 |
LocalDateTime curDate = LocalDateTime.now();
|
4676 |
LocalDateTime curDate = LocalDateTime.now();
|
| 4679 |
|
4677 |
|
| 4680 |
List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.TICKET_CATEGORY_CATEGORY,
|
4678 |
List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.TICKET_CATEGORY_CATEGORY,
|
| Line 4882... |
Line 4880... |
| 4882 |
|
4880 |
|
| 4883 |
List<Integer> customerOfferIds = customerOfferRepository.selectOffers(LocalDate.now()).stream()
|
4881 |
List<Integer> customerOfferIds = customerOfferRepository.selectOffers(LocalDate.now()).stream()
|
| 4884 |
.map(x -> x.getId()).collect(Collectors.toList());
|
4882 |
.map(x -> x.getId()).collect(Collectors.toList());
|
| 4885 |
|
4883 |
|
| 4886 |
List<Integer> catalogItemIds = customerOfferItemRepository
|
4884 |
List<Integer> catalogItemIds = customerOfferItemRepository
|
| 4887 |
.selectByOfferIdsRange(customerOfferIds, LocalDate.now().minusDays(30), LocalDate.now().plusDays(1))
|
4885 |
.selectByOfferIdsRange(customerOfferIds, LocalDate.now()).stream().map(x -> x.getCatalogId()).distinct()
|
| 4888 |
.stream().map(x -> x.getCatalogId()).distinct().collect(Collectors.toList());
|
4886 |
.collect(Collectors.toList());
|
| 4889 |
|
4887 |
|
| 4890 |
LOGGER.info("catalogItemIds {}", catalogItemIds);
|
4888 |
LOGGER.info("catalogItemIds {}", catalogItemIds);
|
| 4891 |
if (!catalogItemIds.isEmpty()) {
|
4889 |
if (!catalogItemIds.isEmpty()) {
|
| 4892 |
webProductListingRepository.deleteByEqual(webListing.getId());
|
4890 |
webProductListingRepository.deleteByEqual(webListing.getId());
|
| 4893 |
int count = 0;
|
4891 |
int count = 0;
|