| Line 223... |
Line 223... |
| 223 |
private SchemeService schemeService;
|
223 |
private SchemeService schemeService;
|
| 224 |
|
224 |
|
| 225 |
private static final String[] STOCK_AGEING_MAIL_LIST = new String[] { "amod.sen@smartdukaan.com",
|
225 |
private static final String[] STOCK_AGEING_MAIL_LIST = new String[] { "amod.sen@smartdukaan.com",
|
| 226 |
"adeel.yazdani@smartdukaan.com", "manoj.singh@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
226 |
"adeel.yazdani@smartdukaan.com", "manoj.singh@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
| 227 |
"mohinder.mutreja@smartdukaan.com", " ankit.bhatia@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
227 |
"mohinder.mutreja@smartdukaan.com", " ankit.bhatia@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
| 228 |
"chaitnaya.vats@smartdukaan.com", "kuldeep.kumar@smartdukaan.com" };
|
228 |
"chaitnaya.vats@smartdukaan.com", "kuldeep.kumar@smartdukaan.com", "prakash.rai@smartdukaan.com" };
|
| 229 |
|
229 |
|
| 230 |
private static final String[] ITEMWISE_PENDING_INDENT_MAIL_LIST = new String[] { "kamini.sharma@smartdukaan.com",
|
230 |
private static final String[] ITEMWISE_PENDING_INDENT_MAIL_LIST = new String[] { "kamini.sharma@smartdukaan.com",
|
| 231 |
"tarun.verma@smartdukaan.com", "chaitnaya.vats@smartdukaan.com", "kuldeep.kumar@smartdukaan.com" };
|
231 |
"prakash.rai@smartdukaan.com", "tarun.verma@smartdukaan.com", "chaitnaya.vats@smartdukaan.com", "kuldeep.kumar@smartdukaan.com" };
|
| 232 |
|
232 |
|
| 233 |
private List<OrderStatus> orderStatusList = Arrays.asList(OrderStatus.SUBMITTED_FOR_PROCESSING);
|
233 |
private List<OrderStatus> orderStatusList = Arrays.asList(OrderStatus.SUBMITTED_FOR_PROCESSING);
|
| 234 |
|
234 |
|
| 235 |
@Autowired
|
235 |
@Autowired
|
| 236 |
private ReporticoService reporticoService;
|
236 |
private ReporticoService reporticoService;
|
| Line 671... |
Line 671... |
| 671 |
|
671 |
|
| 672 |
}
|
672 |
}
|
| 673 |
|
673 |
|
| 674 |
public void sendPartnerInvestmentDetails(List<String> sendTo) throws Exception {
|
674 |
public void sendPartnerInvestmentDetails(List<String> sendTo) throws Exception {
|
| 675 |
if (sendTo == null) {
|
675 |
if (sendTo == null) {
|
| 676 |
sendTo = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
676 |
sendTo = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com", "prakash.rai@smartdukaan.com",
|
| 677 |
"amit.gupta@shop2020.in", "amod.sen@smartdukaan.com");
|
677 |
"amit.gupta@shop2020.in", "amod.sen@smartdukaan.com");
|
| 678 |
}
|
678 |
}
|
| 679 |
LocalDate yesterDay = LocalDate.now().minusDays(1);
|
679 |
LocalDate yesterDay = LocalDate.now().minusDays(1);
|
| 680 |
List<FofoStore> fofoStores = fofoStoreRepository.selectActiveStores();
|
680 |
List<FofoStore> fofoStores = fofoStoreRepository.selectActiveStores();
|
| 681 |
Map<Integer, CustomRetailer> customRetailerMap = retailerService
|
681 |
Map<Integer, CustomRetailer> customRetailerMap = retailerService
|
| Line 772... |
Line 772... |
| 772 |
|
772 |
|
| 773 |
public void sendTargetVsSalesReport(List<String> sendTo) throws Exception {
|
773 |
public void sendTargetVsSalesReport(List<String> sendTo) throws Exception {
|
| 774 |
|
774 |
|
| 775 |
if (sendTo == null) {
|
775 |
if (sendTo == null) {
|
| 776 |
sendTo = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
776 |
sendTo = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
| 777 |
"amit.gupta@shop2020.in", "amod.sen@smartdukaan.com");
|
777 |
"amit.gupta@shop2020.in", "amod.sen@smartdukaan.com", "prakash.rai@smartdukaan.com");
|
| 778 |
}
|
778 |
}
|
| 779 |
List<PartnerTargetDetails> partnerTargetDetails = partnerTargetRepository
|
779 |
List<PartnerTargetDetails> partnerTargetDetails = partnerTargetRepository
|
| 780 |
.selectAllGeEqAndLeEqStartDateAndEndDate(LocalDateTime.now().minusDays(1));
|
780 |
.selectAllGeEqAndLeEqStartDateAndEndDate(LocalDateTime.now().minusDays(1));
|
| 781 |
Map<String, List<? extends Serializable>> partnerSalesTargetRowsMap = new HashMap<>();
|
781 |
Map<String, List<? extends Serializable>> partnerSalesTargetRowsMap = new HashMap<>();
|
| 782 |
for (PartnerTargetDetails partnerTargetDetail : partnerTargetDetails) {
|
782 |
for (PartnerTargetDetails partnerTargetDetail : partnerTargetDetails) {
|
| Line 874... |
Line 874... |
| 874 |
}
|
874 |
}
|
| 875 |
|
875 |
|
| 876 |
}
|
876 |
}
|
| 877 |
|
877 |
|
| 878 |
public void sendAgeingReport() throws Exception {
|
878 |
public void sendAgeingReport() throws Exception {
|
| 879 |
sendAgeingReport("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
879 |
sendAgeingReport("kamini.sharma@smartdukaan.com", "prakash.rai@smartdukaan.com", "tarun.verma@smartdukaan.com",
|
| 880 |
"chaitnaya.vats@smartdukaan.com");
|
880 |
"chaitnaya.vats@smartdukaan.com");
|
| 881 |
}
|
881 |
}
|
| 882 |
|
882 |
|
| 883 |
public void moveImeisToPriceDropImeis() throws Exception {
|
883 |
public void moveImeisToPriceDropImeis() throws Exception {
|
| 884 |
List<PriceDrop> priceDrops = priceDropRepository.selectAll();
|
884 |
List<PriceDrop> priceDrops = priceDropRepository.selectAll();
|
| Line 1372... |
Line 1372... |
| 1372 |
salesByFofoIdMap.put(fofoId, sale);
|
1372 |
salesByFofoIdMap.put(fofoId, sale);
|
| 1373 |
LOGGER.info(sale);
|
1373 |
LOGGER.info(sale);
|
| 1374 |
}
|
1374 |
}
|
| 1375 |
String saleReport = this.getDailySalesReportByPartnerId(salesByFofoIdMap, dailyTarget);
|
1375 |
String saleReport = this.getDailySalesReportByPartnerId(salesByFofoIdMap, dailyTarget);
|
| 1376 |
LOGGER.info(saleReport);
|
1376 |
LOGGER.info(saleReport);
|
| 1377 |
String cc[] = { "Tarun.verma@smartdukaan.com", "Kamini.sharma@smartdukaan.com",
|
1377 |
String cc[] = { "Tarun.verma@smartdukaan.com", "Kamini.sharma@smartdukaan.com", "prakash.rai@smartdukaan.com",
|
| 1378 |
"chaitnaya.vats@smartdukaan.com", "adeel.yazdani@smartdukaan.com", "mohinder.mutreja@smartdukaan.com" };
|
1378 |
"chaitnaya.vats@smartdukaan.com", "adeel.yazdani@smartdukaan.com", "mohinder.mutreja@smartdukaan.com" };
|
| 1379 |
String subject = "sale report till" + " " + now.format(timeFormatter);
|
1379 |
String subject = "sale report till" + " " + now.format(timeFormatter);
|
| 1380 |
this.sendMailOfHtmlFomat("amod.sen@smartdukaan.com", saleReport, cc, subject);
|
1380 |
this.sendMailOfHtmlFomat("amod.sen@smartdukaan.com", saleReport, cc, subject);
|
| 1381 |
}
|
1381 |
}
|
| 1382 |
|
1382 |
|