| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.web.controller;
|
1 |
package com.spice.profitmandi.web.controller;
|
| 2 |
|
2 |
|
| 3 |
import com.google.gson.Gson;
|
3 |
import com.google.gson.Gson;
|
| 4 |
import com.google.gson.JsonObject;
|
- |
|
| 5 |
import com.jcraft.jsch.*;
|
4 |
import com.jcraft.jsch.*;
|
| 6 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
5 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 7 |
import com.spice.profitmandi.common.solr.SolrService;
|
6 |
import com.spice.profitmandi.common.solr.SolrService;
|
| 8 |
import com.spice.profitmandi.dao.entity.catalog.FocusedModel;
|
- |
|
| 9 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
7 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
| 10 |
import com.spice.profitmandi.dao.entity.dtr.DocumentUrl;
|
8 |
import com.spice.profitmandi.dao.entity.dtr.DocumentUrl;
|
| 11 |
import com.spice.profitmandi.dao.model.ContentPojo;
|
9 |
import com.spice.profitmandi.dao.model.ContentPojo;
|
| 12 |
import com.spice.profitmandi.dao.model.MediaPojo;
|
10 |
import com.spice.profitmandi.dao.model.MediaPojo;
|
| 13 |
import com.spice.profitmandi.dao.model.Specification;
|
11 |
import com.spice.profitmandi.dao.model.Specification;
|
| Line 240... |
Line 238... |
| 240 |
public String searchEntity(HttpServletRequest request, @RequestParam(defaultValue = "null") String query,
|
238 |
public String searchEntity(HttpServletRequest request, @RequestParam(defaultValue = "null") String query,
|
| 241 |
@RequestParam(defaultValue = "0") int categoryId, @RequestParam(defaultValue = "") List<String> brands,
|
239 |
@RequestParam(defaultValue = "0") int categoryId, @RequestParam(defaultValue = "") List<String> brands,
|
| 242 |
@RequestParam(defaultValue = "30") int limit, @RequestParam(defaultValue = "true") boolean activeOnly,
|
240 |
@RequestParam(defaultValue = "30") int limit, @RequestParam(defaultValue = "true") boolean activeOnly,
|
| 243 |
Model model) throws Exception {
|
241 |
Model model) throws Exception {
|
| 244 |
model.addAttribute("response1", solrService.getContent(query, categoryId > 0 ? Arrays.asList(categoryId) : null,
|
242 |
model.addAttribute("response1", solrService.getContent(query, categoryId > 0 ? Arrays.asList(categoryId) : null,
|
| 245 |
brands, limit, activeOnly));
|
243 |
brands, limit, false));
|
| 246 |
return "response";
|
244 |
return "response";
|
| 247 |
}
|
245 |
}
|
| 248 |
|
246 |
|
| 249 |
@GetMapping(value = "/focusedEntity")
|
247 |
@GetMapping(value = "/focusedEntity")
|
| 250 |
public String focusedEntity(HttpServletRequest request, @RequestParam(defaultValue = "null") String query,
|
248 |
public String focusedEntity(HttpServletRequest request, @RequestParam(defaultValue = "null") String query,
|