| Line 49... |
Line 49... |
| 49 |
import com.spice.profitmandi.common.web.client.RestClient;
|
49 |
import com.spice.profitmandi.common.web.client.RestClient;
|
| 50 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
50 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
| 51 |
import com.spice.profitmandi.dao.entity.catalog.Category;
|
51 |
import com.spice.profitmandi.dao.entity.catalog.Category;
|
| 52 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
52 |
import com.spice.profitmandi.dao.entity.catalog.Item;
|
| 53 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
53 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
| - |
|
54 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 54 |
import com.spice.profitmandi.dao.entity.fofo.SuggestedPo;
|
55 |
import com.spice.profitmandi.dao.entity.fofo.SuggestedPo;
|
| 55 |
import com.spice.profitmandi.dao.entity.fofo.SuggestedPoDetail;
|
56 |
import com.spice.profitmandi.dao.entity.fofo.SuggestedPoDetail;
|
| 56 |
import com.spice.profitmandi.dao.entity.inventory.SaholicCIS;
|
57 |
import com.spice.profitmandi.dao.entity.inventory.SaholicCIS;
|
| 57 |
import com.spice.profitmandi.dao.entity.inventory.SaholicPOItem;
|
58 |
import com.spice.profitmandi.dao.entity.inventory.SaholicPOItem;
|
| 58 |
import com.spice.profitmandi.dao.model.UserCart;
|
59 |
import com.spice.profitmandi.dao.model.UserCart;
|
| Line 267... |
Line 268... |
| 267 |
@RequestParam(value = "subCategoryId", required = false) int subCategoryId,
|
268 |
@RequestParam(value = "subCategoryId", required = false) int subCategoryId,
|
| 268 |
@RequestParam(value = "q", required = false) String queryTerm,
|
269 |
@RequestParam(value = "q", required = false) String queryTerm,
|
| 269 |
@RequestParam(value = "hotDeal", required = false) boolean hotDeal) throws Throwable {
|
270 |
@RequestParam(value = "hotDeal", required = false) boolean hotDeal) throws Throwable {
|
| 270 |
List<FofoCatalogResponse> dealResponse = new ArrayList<>();
|
271 |
List<FofoCatalogResponse> dealResponse = new ArrayList<>();
|
| 271 |
UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
|
272 |
UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
|
| - |
|
273 |
FofoStore fs = fofoStoreRepository.selectByRetailerId(userInfo.getRetailerId());
|
| - |
|
274 |
sort = "w_" + fs.getWarehouseId() + "_i";
|
| 272 |
dealResponse = this.getCatalogResponse(
|
275 |
dealResponse = this.getCatalogResponse(
|
| 273 |
solrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, hotDeal),
|
276 |
solrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, hotDeal),
|
| 274 |
hotDeal, userInfo.getRetailerId());
|
277 |
hotDeal, userInfo.getRetailerId());
|
| 275 |
return responseSender.ok(dealResponse);
|
278 |
return responseSender.ok(dealResponse);
|
| 276 |
}
|
279 |
}
|