| Line 7... |
Line 7... |
| 7 |
import java.time.LocalDateTime;
|
7 |
import java.time.LocalDateTime;
|
| 8 |
import java.util.ArrayList;
|
8 |
import java.util.ArrayList;
|
| 9 |
import java.util.HashMap;
|
9 |
import java.util.HashMap;
|
| 10 |
import java.util.List;
|
10 |
import java.util.List;
|
| 11 |
import java.util.Map;
|
11 |
import java.util.Map;
|
| - |
|
12 |
import java.util.Set;
|
| 12 |
import java.util.stream.Collectors;
|
13 |
import java.util.stream.Collectors;
|
| 13 |
|
14 |
|
| 14 |
import javax.servlet.http.HttpServletRequest;
|
15 |
import javax.servlet.http.HttpServletRequest;
|
| 15 |
|
16 |
|
| 16 |
import org.apache.logging.log4j.LogManager;
|
17 |
import org.apache.logging.log4j.LogManager;
|
| Line 361... |
Line 362... |
| 361 |
long size = 0;
|
362 |
long size = 0;
|
| 362 |
List<Integer> fofoIds = fofoStoreRepository.selectAll().stream().map(x -> x.getId())
|
363 |
List<Integer> fofoIds = fofoStoreRepository.selectAll().stream().map(x -> x.getId())
|
| 363 |
.collect(Collectors.toList());
|
364 |
.collect(Collectors.toList());
|
| 364 |
Map<Integer, CustomRetailer> customRetailersMap = retailerService.getFofoRetailers(fofoIds);
|
365 |
Map<Integer, CustomRetailer> customRetailersMap = retailerService.getFofoRetailers(fofoIds);
|
| 365 |
String customRetailers = JSONObject.valueToString(customRetailersMap.values());
|
366 |
String customRetailers = JSONObject.valueToString(customRetailersMap.values());
|
| - |
|
367 |
Set<String> brands = inventoryService.getAllTagListingBrands(ProfitMandiConstants.MOBILE_CATEGORY_ID);
|
| - |
|
368 |
brands.add("Airtel");
|
| - |
|
369 |
brands.add("Vodafone");
|
| - |
|
370 |
brands.add("Idea");
|
| - |
|
371 |
LOGGER.info("brands"+brands);
|
| 366 |
model.addAttribute("customRetailers", customRetailers);
|
372 |
model.addAttribute("customRetailers", customRetailers);
|
| 367 |
model.addAttribute("brands", inventoryService.getAllTagListingBrands(ProfitMandiConstants.MOBILE_CATEGORY_ID));
|
373 |
model.addAttribute("brands",brands );
|
| 368 |
promoterInfo = promoterRepository.selectAllPromoter(offset, limit);
|
374 |
promoterInfo = promoterRepository.selectAllPromoter(offset, limit);
|
| 369 |
|
375 |
|
| 370 |
size = promoterRepository.selectAllCount();
|
376 |
size = promoterRepository.selectAllCount();
|
| 371 |
|
377 |
|
| 372 |
LOGGER.info("promoterInfo" + promoterInfo);
|
378 |
LOGGER.info("promoterInfo" + promoterInfo);
|