| Line 523... |
Line 523... |
| 523 |
warehousePartnerDetailMap = this.getWarehousePartnerDetail(warehouseIdFofoIdMap);
|
523 |
warehousePartnerDetailMap = this.getWarehousePartnerDetail(warehouseIdFofoIdMap);
|
| 524 |
|
524 |
|
| 525 |
ReporticoCacheTable rctPartneStat = reporticoCacheTableRepository.selectByTableName("partnerStat");
|
525 |
ReporticoCacheTable rctPartneStat = reporticoCacheTableRepository.selectByTableName("partnerStat");
|
| 526 |
|
526 |
|
| 527 |
Set<CustomRetailer> positionRetailers = fofoIds.stream()
|
527 |
Set<CustomRetailer> positionRetailers = fofoIds.stream()
|
| - |
|
528 |
.map(x -> {
|
| - |
|
529 |
try {
|
| 528 |
.map(x -> retailerService.getAllFofoRetailers().get(x)).filter(x -> x != null)
|
530 |
return retailerService.getAllFofoRetailers().get(x);
|
| - |
|
531 |
} catch (ProfitMandiBusinessException e) {
|
| - |
|
532 |
throw new RuntimeException(e);
|
| - |
|
533 |
}
|
| - |
|
534 |
}).filter(x -> x != null)
|
| 529 |
.collect(Collectors.toSet());
|
535 |
.collect(Collectors.toSet());
|
| 530 |
model.addAttribute("retailers", gson.toJson(positionRetailers));
|
536 |
model.addAttribute("retailers", gson.toJson(positionRetailers));
|
| 531 |
model.addAttribute("reporticoProjectMap", ReporticoProject.salesReporticoProjectMap);
|
537 |
model.addAttribute("reporticoProjectMap", ReporticoProject.salesReporticoProjectMap);
|
| 532 |
model.addAttribute("warehouses", getWarehouses(positionRetailers));
|
538 |
model.addAttribute("warehouses", getWarehouses(positionRetailers));
|
| 533 |
model.addAttribute("rctPartneStat", rctPartneStat);
|
539 |
model.addAttribute("rctPartneStat", rctPartneStat);
|