| Line 822... |
Line 822... |
| 822 |
LocalDate yesterDay = LocalDate.now().minusDays(1);
|
822 |
LocalDate yesterDay = LocalDate.now().minusDays(1);
|
| 823 |
List<FofoStore> fofoStores = fofoStoreRepository.selectActiveStores();
|
823 |
List<FofoStore> fofoStores = fofoStoreRepository.selectActiveStores();
|
| 824 |
Map<Integer, CustomRetailer> customRetailerMap = retailerService
|
824 |
Map<Integer, CustomRetailer> customRetailerMap = retailerService
|
| 825 |
.getFofoRetailers(fofoStores.stream().map(x -> x.getId()).collect(Collectors.toList()));
|
825 |
.getFofoRetailers(fofoStores.stream().map(x -> x.getId()).collect(Collectors.toList()));
|
| 826 |
|
826 |
|
| 827 |
List<String> headers = Arrays.asList("Code", "Firm Name", "Store Name", "State Manager", "Teritory/Team Lead",
|
827 |
List<String> headers = Arrays.asList("Code", "Outlet name", "State Manager", "Teritory/Team Lead",
|
| 828 |
"Wallet Amount", "In Stock Amount", "Activated Stock", "Return In Transit Stock", "Unbilled Amount",
|
828 |
"Wallet Amount", "In Stock Amount", "Activated Stock", "Return In Transit Stock", "Unbilled Amount",
|
| 829 |
"Grn Pending Amount", "Min Investment", "Investment Amount", "Investment Short", "Unbilled Qty",
|
829 |
"Grn Pending Amount", "Min Investment", "Investment Amount", "Investment Short", "Unbilled Qty",
|
| 830 |
"Short Days");
|
830 |
"Short Days");
|
| 831 |
List<List<?>> rows = new ArrayList<>();
|
831 |
List<List<?>> rows = new ArrayList<>();
|
| 832 |
Map<Integer, List<?>> partnerRowsMap = new HashMap<>();
|
832 |
Map<Integer, List<?>> partnerRowsMap = new HashMap<>();
|
| Line 1819... |
Line 1819... |
| 1819 |
jsonObj.put("vibrate", 1);
|
1819 |
jsonObj.put("vibrate", 1);
|
| 1820 |
jsonObj.put("pid", pushNotification.getId());
|
1820 |
jsonObj.put("pid", pushNotification.getId());
|
| 1821 |
jsonObj.put("sound", 1);
|
1821 |
jsonObj.put("sound", 1);
|
| 1822 |
jsonObj.put("priority", "high");
|
1822 |
jsonObj.put("priority", "high");
|
| 1823 |
json.put("data", jsonObj);
|
1823 |
json.put("data", jsonObj);
|
| 1824 |
LOGGER.info("request {}",jsonObj);
|
1824 |
LOGGER.info("request {}",json);
|
| 1825 |
try {
|
1825 |
try {
|
| 1826 |
CloseableHttpClient client = HttpClients.createDefault();
|
1826 |
CloseableHttpClient client = HttpClients.createDefault();
|
| 1827 |
HttpPost httpPost = new HttpPost(FCM_URL);
|
1827 |
HttpPost httpPost = new HttpPost(FCM_URL);
|
| 1828 |
|
1828 |
|
| 1829 |
httpPost.setHeader("Content-Type", "application/json; utf-8");
|
1829 |
httpPost.setHeader("Content-Type", "application/json; utf-8");
|