Subversion Repositories SmartDukaan

Rev

Rev 32900 | Rev 32903 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32900 Rev 32901
Line 223... Line 223...
223
 
223
 
224
    @RequestMapping(value = "/getPricing", method = RequestMethod.GET)
224
    @RequestMapping(value = "/getPricing", method = RequestMethod.GET)
225
    public String getPricing(HttpServletRequest request, @RequestParam int vendorId, @RequestParam int itemId, @RequestParam LocalDate onDate, Model model) throws Exception {
225
    public String getPricing(HttpServletRequest request, @RequestParam int vendorId, @RequestParam int itemId, @RequestParam LocalDate onDate, Model model) throws Exception {
226
 
226
 
227
        vendorId = this.getVendorId(itemId, vendorId);
227
        vendorId = this.getVendorId(itemId, vendorId);
-
 
228
        Item item = itemRepository.selectById(itemId);
228
        VendorPriceCircularModel vendorPriceCircularModel = vendorCatalogPricingLogRepository.getVendorPriceOnDate(vendorId, item.getCatalogItemId(), onDate);
229
        VendorPriceCircularModel vendorPriceCircularModel = vendorCatalogPricingLogRepository.getVendorPriceOnDate(vendorId, item.getCatalogItemId(), onDate);
229
 
230
 
230
        LOGGER.info("vendorCatalogPricing {}", vendorPriceCircularModel);
231
        LOGGER.info("vendorCatalogPricing {}", vendorPriceCircularModel);
231
 
232
 
232
        model.addAttribute("response1", mvcResponseSender.createResponseString(vendorPriceCircularModel));
233
        model.addAttribute("response1", mvcResponseSender.createResponseString(vendorPriceCircularModel));