Subversion Repositories SmartDukaan

Rev

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

Rev 36344 Rev 36348
Line 401... Line 401...
401
            throws Exception {
401
            throws Exception {
402
        CreateOfferRequest createOfferRequest = offerService.getOffer(0, offerId);
402
        CreateOfferRequest createOfferRequest = offerService.getOffer(0, offerId);
403
        if (!createOfferRequest.isActive()) {
403
        if (!createOfferRequest.isActive()) {
404
            throw new ProfitMandiBusinessException("Offer not active", "Offer not active", "Offer not active");
404
            throw new ProfitMandiBusinessException("Offer not active", "Offer not active", "Offer not active");
405
        }
405
        }
406
        offerBatchService.processOfferWithBatch(offerId);
406
        String message = offerBatchService.submitBatchAsync(offerId);
407
        return responseSender.ok(true);
407
        return responseSender.ok(message);
408
    }
408
    }
409
 
409
 
410
    @RequestMapping(value = "/offerDownload", method = RequestMethod.GET)
410
    @RequestMapping(value = "/offerDownload", method = RequestMethod.GET)
411
    public ResponseEntity<?> dowloadOfferSummary(HttpServletRequest request, @RequestParam int offerId, Model model)
411
    public ResponseEntity<?> dowloadOfferSummary(HttpServletRequest request, @RequestParam int offerId, Model model)
412
            throws Exception {
412
            throws Exception {