| Line 22... |
Line 22... |
| 22 |
import com.spice.profitmandi.dao.repository.fofo.PincodePartnerRepository;
|
22 |
import com.spice.profitmandi.dao.repository.fofo.PincodePartnerRepository;
|
| 23 |
import com.spice.profitmandi.dao.repository.user.LocationRepository;
|
23 |
import com.spice.profitmandi.dao.repository.user.LocationRepository;
|
| 24 |
import com.spice.profitmandi.dao.repository.user.PromoterRepository;
|
24 |
import com.spice.profitmandi.dao.repository.user.PromoterRepository;
|
| 25 |
import com.spice.profitmandi.dao.repository.user.UserRepository;
|
25 |
import com.spice.profitmandi.dao.repository.user.UserRepository;
|
| 26 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
26 |
import com.spice.profitmandi.service.PartnerInvestmentService;
|
| - |
|
27 |
import com.spice.profitmandi.service.catalog.BrandsService;
|
| 27 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
28 |
import com.spice.profitmandi.service.inventory.InventoryService;
|
| 28 |
import com.spice.profitmandi.service.user.RetailerService;
|
29 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 29 |
import com.spice.profitmandi.service.user.StoreTimelineTatService;
|
30 |
import com.spice.profitmandi.service.user.StoreTimelineTatService;
|
| 30 |
import com.spice.profitmandi.web.model.LoginDetails;
|
31 |
import com.spice.profitmandi.web.model.LoginDetails;
|
| 31 |
import com.spice.profitmandi.web.util.CookiesProcessor;
|
32 |
import com.spice.profitmandi.web.util.CookiesProcessor;
|
| Line 856... |
Line 857... |
| 856 |
model.addAttribute("response1", mvcResponseSender.createResponseString(true));
|
857 |
model.addAttribute("response1", mvcResponseSender.createResponseString(true));
|
| 857 |
|
858 |
|
| 858 |
return "response";
|
859 |
return "response";
|
| 859 |
}
|
860 |
}
|
| 860 |
|
861 |
|
| - |
|
862 |
@Autowired
|
| - |
|
863 |
BrandsService brandsService;
|
| - |
|
864 |
|
| 861 |
@RequestMapping(value = "/getBrandslimit", method = RequestMethod.GET)
|
865 |
@RequestMapping(value = "/getBrandslimit", method = RequestMethod.GET)
|
| 862 |
public String getBrandslimit(HttpServletRequest request, Model model) throws Exception {
|
866 |
public String getBrandslimit(HttpServletRequest request, Model model) throws Exception {
|
| 863 |
|
867 |
|
| 864 |
int fofoId = Utils.SYSTEM_PARTNER_ID;
|
868 |
int fofoId = Utils.SYSTEM_PARTNER_ID;
|
| 865 |
Set<String> brands = null;
|
- |
|
| 866 |
|
- |
|
| 867 |
brands = mongoClient.getMongoBrands(fofoId, null, 3).stream().map(x -> (String) x.get("name"))
|
- |
|
| 868 |
.collect(Collectors.toSet());
|
- |
|
| 869 |
|
869 |
|
| - |
|
870 |
List<String> brands = brandsService.getBrandsToDisplay(3).stream().map(x -> x.getName()).collect(Collectors.toList());
|
| 870 |
model.addAttribute("brands", brands);
|
871 |
model.addAttribute("brands", brands);
|
| 871 |
|
872 |
|
| 872 |
return "brands-limit";
|
873 |
return "brands-limit";
|
| 873 |
|
874 |
|
| 874 |
}
|
875 |
}
|