| Line 20... |
Line 20... |
| 20 |
import com.spice.profitmandi.dao.entity.dtr.WebListing;
|
20 |
import com.spice.profitmandi.dao.entity.dtr.WebListing;
|
| 21 |
import com.spice.profitmandi.dao.entity.dtr.WebOffer;
|
21 |
import com.spice.profitmandi.dao.entity.dtr.WebOffer;
|
| 22 |
import com.spice.profitmandi.dao.entity.fofo.*;
|
22 |
import com.spice.profitmandi.dao.entity.fofo.*;
|
| 23 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
23 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
| 24 |
import com.spice.profitmandi.dao.enumuration.dtr.OtpType;
|
24 |
import com.spice.profitmandi.dao.enumuration.dtr.OtpType;
|
| 25 |
import com.spice.profitmandi.dao.enumuration.dtr.WebListingType;
|
25 |
import com.spice.profitmandi.dao.enumuration.dtr.WebListingSource;
|
| 26 |
import com.spice.profitmandi.dao.enumuration.inventory.ScratchedGift;
|
26 |
import com.spice.profitmandi.dao.enumuration.inventory.ScratchedGift;
|
| 27 |
import com.spice.profitmandi.dao.enumuration.transaction.OrderStatus;
|
27 |
import com.spice.profitmandi.dao.enumuration.transaction.OrderStatus;
|
| 28 |
import com.spice.profitmandi.dao.model.*;
|
28 |
import com.spice.profitmandi.dao.model.*;
|
| 29 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
29 |
import com.spice.profitmandi.dao.repository.catalog.ItemRepository;
|
| 30 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
30 |
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
|
| Line 701... |
Line 701... |
| 701 |
}
|
701 |
}
|
| 702 |
|
702 |
|
| 703 |
@RequestMapping(value = "/store/listing", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
703 |
@RequestMapping(value = "/store/listing", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
| 704 |
public ResponseEntity<?> getStoresListing(HttpServletRequest request) throws Exception {
|
704 |
public ResponseEntity<?> getStoresListing(HttpServletRequest request) throws Exception {
|
| 705 |
List<WebListing> webListings = webListingRepository.selectAllWebListingByType(Optional.of(true),
|
705 |
List<WebListing> webListings = webListingRepository.selectAllWebListingByType(Optional.of(true),
|
| 706 |
WebListingType.store);
|
706 |
WebListingSource.store);
|
| 707 |
UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
|
707 |
UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
|
| 708 |
for (WebListing webListing : webListings) {
|
708 |
for (WebListing webListing : webListings) {
|
| 709 |
webListing.setFofoCatalogResponses(getDealResponses(userInfo, webListing));
|
709 |
webListing.setFofoCatalogResponses(getDealResponses(userInfo, webListing));
|
| 710 |
}
|
710 |
}
|
| 711 |
return responseSender.ok(webListings);
|
711 |
return responseSender.ok(webListings);
|