| Line 1285... |
Line 1285... |
| 1285 |
|
1285 |
|
| 1286 |
@RequestMapping(value = "/store/clearance", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
1286 |
@RequestMapping(value = "/store/clearance", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
| 1287 |
public ResponseEntity<?> getLiquidations() throws Exception {
|
1287 |
public ResponseEntity<?> getLiquidations() throws Exception {
|
| 1288 |
List<Integer> catalogIds = new ArrayList<>();
|
1288 |
List<Integer> catalogIds = new ArrayList<>();
|
| 1289 |
Map<Integer, JSONObject> contentMap = null;
|
1289 |
Map<Integer, JSONObject> contentMap = null;
|
| 1290 |
List<Liquidation> liquidations = liquidationRepository.selectAllByStatus(ProfitMandiConstants.LIQUIDATION_ENUM.ACTIVE);
|
1290 |
List<Liquidation> liquidations = liquidationRepository.selectAllByStatus(ProfitMandiConstants.LIQUIDATION_ENUM.PUBLISHED);
|
| 1291 |
|
1291 |
|
| 1292 |
if (!liquidations.isEmpty()) {
|
1292 |
if (!liquidations.isEmpty()) {
|
| 1293 |
for (Liquidation liquidation : liquidations) catalogIds.add(liquidation.getCatalogId());
|
1293 |
for (Liquidation liquidation : liquidations) catalogIds.add(liquidation.getCatalogId());
|
| 1294 |
contentMap = commonSolrService.getContentByCatalogIds(catalogIds);
|
1294 |
contentMap = commonSolrService.getContentByCatalogIds(catalogIds);
|
| 1295 |
}
|
1295 |
}
|