| Line 1425... |
Line 1425... |
| 1425 |
Map<Integer, List<Integer>> warehouseIdFofoIdMap = fofoStoreRepository
|
1425 |
Map<Integer, List<Integer>> warehouseIdFofoIdMap = fofoStoreRepository
|
| 1426 |
.selectActivePartnersByRetailerIds(new ArrayList<>(fofoIds)).stream()
|
1426 |
.selectActivePartnersByRetailerIds(new ArrayList<>(fofoIds)).stream()
|
| 1427 |
.collect(Collectors.groupingBy(FofoStore::getWarehouseId,
|
1427 |
.collect(Collectors.groupingBy(FofoStore::getWarehouseId,
|
| 1428 |
Collectors.mapping(FofoStore::getId, Collectors.toList())));
|
1428 |
Collectors.mapping(FofoStore::getId, Collectors.toList())));
|
| 1429 |
|
1429 |
|
| 1430 |
if (!warehouseIdFofoIdMap.containsKey(7573)) {
|
- |
|
| 1431 |
warehouseIdFofoIdMap.put(7573, new ArrayList<>());
|
1430 |
// Same rule as AdminUser.getWarehouseIdFofoIdMap: every warehouse holding stock is included, even with no
|
| 1432 |
}
|
- |
|
| 1433 |
if (!warehouseIdFofoIdMap.containsKey(10516)) {
|
- |
|
| 1434 |
warehouseIdFofoIdMap.put(10516, new ArrayList<>());
|
1431 |
// franchise store of its own (the HR hubs carry only internal stores).
|
| 1435 |
}
|
- |
|
| 1436 |
if (!warehouseIdFofoIdMap.containsKey(7678)) {
|
1432 |
for (Integer stockWarehouseId : saholicInventoryCISRepository.selectWarehouseIdsWithStock()) {
|
| 1437 |
warehouseIdFofoIdMap.put(7678, new ArrayList<>());
|
1433 |
warehouseIdFofoIdMap.putIfAbsent(stockWarehouseId, new ArrayList<>());
|
| 1438 |
}
|
1434 |
}
|
| 1439 |
List<WarehouseWiseBrandStockModel> warehouseWiseBrandStock = new ArrayList<>();
|
1435 |
List<WarehouseWiseBrandStockModel> warehouseWiseBrandStock = new ArrayList<>();
|
| 1440 |
if (!warehouseId.contains(0)) {
|
1436 |
if (!warehouseId.contains(0)) {
|
| 1441 |
warehouseWiseBrandStock = saholicInventoryCISRepository.selectGroupByWarehouseAndBrand(warehouseId);
|
1437 |
warehouseWiseBrandStock = saholicInventoryCISRepository.selectGroupByWarehouseAndBrand(warehouseId);
|
| 1442 |
} else {
|
1438 |
} else {
|