| Line 153... |
Line 153... |
| 153 |
}
|
153 |
}
|
| 154 |
|
154 |
|
| 155 |
@RequestMapping(value = "/getClosedPricedropItemDescription", method = RequestMethod.GET)
|
155 |
@RequestMapping(value = "/getClosedPricedropItemDescription", method = RequestMethod.GET)
|
| 156 |
public String getClosedPricedropItemDescription(HttpServletRequest request, Model model) throws Throwable {
|
156 |
public String getClosedPricedropItemDescription(HttpServletRequest request, Model model) throws Throwable {
|
| 157 |
List<PriceDrop> priceDrops = priceDropRepository.selectAllComplete();
|
157 |
List<PriceDrop> priceDrops = priceDropRepository.selectAllComplete();
|
| 158 |
int a =1;
|
158 |
int processOn =1;
|
| 159 |
|
159 |
|
| 160 |
|
160 |
|
| 161 |
List<PriceDrop> completePriceDrops = priceDrops.stream().filter(x -> x.getCompleteTimestamp() != null)
|
161 |
List<PriceDrop> completePriceDrops = priceDrops.stream().filter(x -> x.getCompleteTimestamp() != null)
|
| 162 |
.collect(Collectors.toList());
|
162 |
.collect(Collectors.toList());
|
| 163 |
|
163 |
|
| Line 167... |
Line 167... |
| 167 |
LOGGER.info("catalogIds" + catalogIds);
|
167 |
LOGGER.info("catalogIds" + catalogIds);
|
| 168 |
|
168 |
|
| 169 |
Map<Integer, String> catalogDescription = items.stream().collect(Collectors.toMap(x -> x.getCatalogItemId(),
|
169 |
Map<Integer, String> catalogDescription = items.stream().collect(Collectors.toMap(x -> x.getCatalogItemId(),
|
| 170 |
x -> x.getItemDescriptionNoColor(), (description1, description2) -> description1));
|
170 |
x -> x.getItemDescriptionNoColor(), (description1, description2) -> description1));
|
| 171 |
model.addAttribute("priceDrops", completePriceDrops);
|
171 |
model.addAttribute("priceDrops", completePriceDrops);
|
| 172 |
model.addAttribute("a", a);
|
172 |
model.addAttribute("processOn", processOn);
|
| 173 |
model.addAttribute("catalogDescription", catalogDescription);
|
173 |
model.addAttribute("catalogDescription", catalogDescription);
|
| 174 |
return "price-drop";
|
174 |
return "price-drop";
|
| 175 |
}
|
175 |
}
|
| 176 |
|
176 |
|
| 177 |
@RequestMapping(value = "/item-pricing/{itemId}", method = RequestMethod.GET)
|
177 |
@RequestMapping(value = "/item-pricing/{itemId}", method = RequestMethod.GET)
|