| Line 173... |
Line 173... |
| 173 |
}
|
173 |
}
|
| 174 |
|
174 |
|
| 175 |
@RequestMapping(value = "/item", method = RequestMethod.GET)
|
175 |
@RequestMapping(value = "/item", method = RequestMethod.GET)
|
| 176 |
public String getItemPricing(HttpServletRequest request, Model model, @RequestParam String query) throws Throwable {
|
176 |
public String getItemPricing(HttpServletRequest request, Model model, @RequestParam String query) throws Throwable {
|
| 177 |
List<ItemDescriptionModel> partnersItemDescription = this.getAllPartnerItemStringDescription()
|
177 |
List<ItemDescriptionModel> partnersItemDescription = this.getAllPartnerItemStringDescription()
|
| 178 |
.parallelStream().filter(x -> !x.getItemDescription().matches(query)).collect(Collectors.toList());
|
178 |
.parallelStream().filter(x -> x.getItemDescription().matches("/.+?(?=" + query +")/i")).collect(Collectors.toList());
|
| 179 |
|
179 |
|
| 180 |
model.addAttribute("response", mvcResponseSender.createResponseString(partnersItemDescription));
|
180 |
model.addAttribute("response", mvcResponseSender.createResponseString(partnersItemDescription));
|
| 181 |
return "response";
|
181 |
return "response";
|
| 182 |
}
|
182 |
}
|
| 183 |
|
183 |
|