| Line 1... |
Line 1... |
| 1 |
package com.smartdukaan.cron.migrations;
|
1 |
package com.smartdukaan.cron.migrations;
|
| 2 |
|
2 |
|
| 3 |
import com.google.gson.Gson;
|
3 |
import com.google.gson.Gson;
|
| 4 |
import com.smartdukaan.cron.scheduled.OppoImeiActivationService;
|
- |
|
| 5 |
import com.smartdukaan.cron.scheduled.SamsungIMEIActivationService;
|
4 |
import com.smartdukaan.cron.scheduled.SamsungIMEIActivationService;
|
| 6 |
import com.smartdukaan.cron.scheduled.ScheduledTasks;
|
5 |
import com.smartdukaan.cron.scheduled.ScheduledTasks;
|
| 7 |
import com.smartdukaan.cron.scheduled.amazon.shop.AmazonPurchaseService;
|
6 |
import com.smartdukaan.cron.scheduled.amazon.shop.AmazonPurchaseService;
|
| 8 |
import com.smartdukaan.cron.scheduled.amazon.shop.OrderSummary;
|
7 |
import com.smartdukaan.cron.scheduled.amazon.shop.OrderSummary;
|
| 9 |
import com.smartdukaan.cron.scheduled.amazon.shop.model.OrderRow;
|
8 |
import com.smartdukaan.cron.scheduled.amazon.shop.model.OrderRow;
|
| Line 57... |
Line 56... |
| 57 |
import com.spice.profitmandi.dao.repository.warehouse.BrandRegionMappingRepository;
|
56 |
import com.spice.profitmandi.dao.repository.warehouse.BrandRegionMappingRepository;
|
| 58 |
import com.spice.profitmandi.dao.repository.warehouse.WarehouseInventoryItemRepository;
|
57 |
import com.spice.profitmandi.dao.repository.warehouse.WarehouseInventoryItemRepository;
|
| 59 |
import com.spice.profitmandi.dao.repository.warehouse.WarehouseScanRepository;
|
58 |
import com.spice.profitmandi.dao.repository.warehouse.WarehouseScanRepository;
|
| 60 |
import com.spice.profitmandi.dao.service.LiquidationService;
|
59 |
import com.spice.profitmandi.dao.service.LiquidationService;
|
| 61 |
import com.spice.profitmandi.dao.service.LocationTrackingService;
|
60 |
import com.spice.profitmandi.dao.service.LocationTrackingService;
|
| - |
|
61 |
import com.spice.profitmandi.dao.service.SaleRewardService;
|
| 62 |
import com.spice.profitmandi.service.integrations.bharti.BAGService;
|
62 |
import com.spice.profitmandi.service.integrations.bharti.BAGService;
|
| 63 |
import com.spice.profitmandi.service.integrations.bharti.model.Sample;
|
63 |
import com.spice.profitmandi.service.integrations.bharti.model.Sample;
|
| 64 |
import com.spice.profitmandi.service.integrations.gstpro.GstProAuthService;
|
64 |
import com.spice.profitmandi.service.integrations.gstpro.GstProAuthService;
|
| 65 |
import com.spice.profitmandi.service.integrations.gstpro.GstProService;
|
65 |
import com.spice.profitmandi.service.integrations.gstpro.GstProService;
|
| 66 |
import com.spice.profitmandi.service.integrations.oneassist.OneAssistService;
|
66 |
import com.spice.profitmandi.service.integrations.oneassist.OneAssistService;
|
| Line 88... |
Line 88... |
| 88 |
import org.apache.commons.csv.CSVRecord;
|
88 |
import org.apache.commons.csv.CSVRecord;
|
| 89 |
import org.apache.commons.io.output.ByteArrayOutputStream;
|
89 |
import org.apache.commons.io.output.ByteArrayOutputStream;
|
| 90 |
import org.apache.commons.lang.StringUtils;
|
90 |
import org.apache.commons.lang.StringUtils;
|
| 91 |
import org.apache.logging.log4j.LogManager;
|
91 |
import org.apache.logging.log4j.LogManager;
|
| 92 |
import org.apache.logging.log4j.Logger;
|
92 |
import org.apache.logging.log4j.Logger;
|
| 93 |
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
- |
|
| 94 |
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
- |
|
| 95 |
import org.apache.poi.ss.usermodel.CellType;
|
93 |
import org.apache.poi.ss.usermodel.CellType;
|
| 96 |
import org.apache.poi.ss.usermodel.DataFormatter;
|
94 |
import org.apache.poi.ss.usermodel.DataFormatter;
|
| 97 |
import org.apache.poi.xssf.usermodel.XSSFCell;
|
95 |
import org.apache.poi.xssf.usermodel.XSSFCell;
|
| 98 |
import org.apache.poi.xssf.usermodel.XSSFRow;
|
96 |
import org.apache.poi.xssf.usermodel.XSSFRow;
|
| 99 |
import org.apache.poi.xssf.usermodel.XSSFSheet;
|
97 |
import org.apache.poi.xssf.usermodel.XSSFSheet;
|
| Line 286... |
Line 284... |
| 286 |
|
284 |
|
| 287 |
@Autowired
|
285 |
@Autowired
|
| 288 |
private JavaMailSender mailSender;
|
286 |
private JavaMailSender mailSender;
|
| 289 |
|
287 |
|
| 290 |
@Autowired
|
288 |
@Autowired
|
| 291 |
AbmReportSender abmReportSender;
|
289 |
private LocationTrackingService locationTrackingService;
|
| 292 |
|
290 |
|
| 293 |
@Autowired
|
291 |
@Autowired
|
| - |
|
292 |
private AbmReportSender abmReportSender;
|
| - |
|
293 |
|
| - |
|
294 |
@Autowired
|
| 294 |
private LocationTrackingService locationTrackingService;
|
295 |
private SaleRewardService saleRewardService;
|
| 295 |
|
296 |
|
| 296 |
private static final String ACCOUNT_ID = "aZ6flHhrgPIEl18buHdPBdueEN4";
|
297 |
private static final String ACCOUNT_ID = "aZ6flHhrgPIEl18buHdPBdueEN4";
|
| 297 |
private static final String SECRET_KEY = "a7rsX5B4UNNfTTx1-IJ19qdH48BT4YvBKlQJg3n3_KKNe7WWych55g";
|
298 |
private static final String SECRET_KEY = "a7rsX5B4UNNfTTx1-IJ19qdH48BT4YvBKlQJg3n3_KKNe7WWych55g";
|
| 298 |
|
299 |
|
| 299 |
@Autowired
|
300 |
@Autowired
|
| Line 2015... |
Line 2016... |
| 2015 |
}
|
2016 |
}
|
| 2016 |
|
2017 |
|
| 2017 |
public void setAbmReportSender() throws Exception{
|
2018 |
public void setAbmReportSender() throws Exception{
|
| 2018 |
abmReportSender.abmSendertest();
|
2019 |
abmReportSender.abmSendertest();
|
| 2019 |
}
|
2020 |
}
|
| - |
|
2021 |
|
| - |
|
2022 |
public void checkRewardsEligibility() throws Exception {
|
| - |
|
2023 |
saleRewardService.disburseRewardsByEligibility(LocalDate.now());
|
| - |
|
2024 |
}
|
| 2020 |
}
|
2025 |
}
|
| 2021 |
|
2026 |
|
| 2022 |
//7015845171
|
2027 |
//7015845171
|
| 2023 |
|
2028 |
|