| Line 43... |
Line 43... |
| 43 |
import com.spice.profitmandi.common.util.FormattingUtils;
|
43 |
import com.spice.profitmandi.common.util.FormattingUtils;
|
| 44 |
import com.spice.profitmandi.common.util.StringUtils;
|
44 |
import com.spice.profitmandi.common.util.StringUtils;
|
| 45 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
45 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
| 46 |
import com.spice.profitmandi.dao.entity.catalog.Scheme;
|
46 |
import com.spice.profitmandi.dao.entity.catalog.Scheme;
|
| 47 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
47 |
import com.spice.profitmandi.dao.entity.catalog.TagListing;
|
| - |
|
48 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 48 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
49 |
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
|
| 49 |
import com.spice.profitmandi.dao.entity.fofo.SchemeItem;
|
50 |
import com.spice.profitmandi.dao.entity.fofo.SchemeItem;
|
| 50 |
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
|
51 |
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
|
| 51 |
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
|
52 |
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
|
| 52 |
import com.spice.profitmandi.dao.model.CreateOfferRequest;
|
53 |
import com.spice.profitmandi.dao.model.CreateOfferRequest;
|
| Line 401... |
Line 402... |
| 401 |
else {
|
402 |
else {
|
| 402 |
List<CreateOfferRequest> offers = new ArrayList<>();
|
403 |
List<CreateOfferRequest> offers = new ArrayList<>();
|
| 403 |
if (searchItem > 0) {
|
404 |
if (searchItem > 0) {
|
| 404 |
offers = offerService.getPublishedOffers(date, loginDetails.getFofoId(), searchItem);
|
405 |
offers = offerService.getPublishedOffers(date, loginDetails.getFofoId(), searchItem);
|
| 405 |
}
|
406 |
}
|
| - |
|
407 |
FofoStore fs = fofoStoreRepository.selectByRetailerId(loginDetails.getFofoId());
|
| - |
|
408 |
|
| 406 |
model.addAttribute("offers", offers);
|
409 |
model.addAttribute("offers", offers);
|
| 407 |
model.addAttribute("partnerId", loginDetails.getFofoId());
|
410 |
model.addAttribute("partnerCode", fs.getCode());
|
| 408 |
return "schemes-partner";
|
411 |
return "schemes-partner";
|
| 409 |
}
|
412 |
}
|
| 410 |
}
|
413 |
}
|
| 411 |
|
414 |
|
| 412 |
@RequestMapping(value = "/getPaginatedSchemes", method = RequestMethod.GET)
|
415 |
@RequestMapping(value = "/getPaginatedSchemes", method = RequestMethod.GET)
|