| Line 483... |
Line 483... |
| 483 |
Map<String, Set<String>> storeGuyMap = new HashMap<>();
|
483 |
Map<String, Set<String>> storeGuyMap = new HashMap<>();
|
| 484 |
Set<Integer> activeFofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId())
|
484 |
Set<Integer> activeFofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId())
|
| 485 |
.collect(Collectors.toSet());
|
485 |
.collect(Collectors.toSet());
|
| 486 |
List<Position> categoryPositions = positionRepository
|
486 |
List<Position> categoryPositions = positionRepository
|
| 487 |
.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES);
|
487 |
.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES);
|
| - |
|
488 |
categoryPositions.addAll(positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_RBM));
|
| 488 |
Map<Integer, Position> positionsMap = categoryPositions.stream()
|
489 |
Map<Integer, Position> positionsMap = categoryPositions.stream()
|
| 489 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
490 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
| 490 |
|
491 |
|
| 491 |
Map<Integer, List<CustomRetailer>> positonPartnerMap = this.getPositionCustomRetailerMap(categoryPositions);
|
492 |
Map<Integer, List<CustomRetailer>> positonPartnerMap = this.getPositionCustomRetailerMap(categoryPositions);
|
| 492 |
for (Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
|
493 |
for (Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
|
| Line 512... |
Line 513... |
| 512 |
Map<String, Set<Integer>> storeGuyMap = new HashMap<>();
|
513 |
Map<String, Set<Integer>> storeGuyMap = new HashMap<>();
|
| 513 |
Set<Integer> activeFofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId())
|
514 |
Set<Integer> activeFofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId())
|
| 514 |
.collect(Collectors.toSet());
|
515 |
.collect(Collectors.toSet());
|
| 515 |
List<Position> categoryPositions = positionRepository
|
516 |
List<Position> categoryPositions = positionRepository
|
| 516 |
.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES);
|
517 |
.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES);
|
| - |
|
518 |
categoryPositions.addAll(positionRepository
|
| - |
|
519 |
.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES));
|
| 517 |
Map<Integer, Position> positionsMap = categoryPositions.stream()
|
520 |
Map<Integer, Position> positionsMap = categoryPositions.stream()
|
| 518 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
521 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
| 519 |
|
522 |
|
| 520 |
Map<Integer, List<CustomRetailer>> positonPartnerMap = this.getPositionCustomRetailerMap(categoryPositions);
|
523 |
Map<Integer, List<CustomRetailer>> positonPartnerMap = this.getPositionCustomRetailerMap(categoryPositions);
|
| 521 |
for (Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
|
524 |
for (Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
|
| Line 611... |
Line 614... |
| 611 |
Map<Integer, List<Integer>> storeGuyMap = new HashMap<>();
|
614 |
Map<Integer, List<Integer>> storeGuyMap = new HashMap<>();
|
| 612 |
Set<Integer> activeFofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId())
|
615 |
Set<Integer> activeFofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId())
|
| 613 |
.collect(Collectors.toSet());
|
616 |
.collect(Collectors.toSet());
|
| 614 |
List<Position> categoryPositions = positionRepository
|
617 |
List<Position> categoryPositions = positionRepository
|
| 615 |
.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES);
|
618 |
.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES);
|
| - |
|
619 |
categoryPositions.addAll(positionRepository
|
| - |
|
620 |
.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_RBM));
|
| 616 |
Map<Integer, Position> positionsMap = categoryPositions.stream()
|
621 |
Map<Integer, Position> positionsMap = categoryPositions.stream()
|
| 617 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
622 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
| 618 |
|
623 |
|
| 619 |
Map<Integer, List<CustomRetailer>> positonPartnerMap = this.getPositionCustomRetailerMap(categoryPositions);
|
624 |
Map<Integer, List<CustomRetailer>> positonPartnerMap = this.getPositionCustomRetailerMap(categoryPositions);
|
| 620 |
for (Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
|
625 |
for (Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
|