Subversion Repositories SmartDukaan

Rev

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

Rev 29839 Rev 29855
Line 104... Line 104...
104
	@Autowired
104
	@Autowired
105
	private OfferService offerService;
105
	private OfferService offerService;
106
	
106
	
107
	@Autowired
107
	@Autowired
108
	private CacheManager thirtyMinsTimeOutCacheManager;
108
	private CacheManager thirtyMinsTimeOutCacheManager;
-
 
109
	
-
 
110
	@Autowired
-
 
111
	private CacheManager oneDayCacheManager;
109
 
112
 
110
	@Autowired
113
	@Autowired
111
	private PartnerTypeChangeService partnerTypeChangeService;
114
	private PartnerTypeChangeService partnerTypeChangeService;
112
 
115
 
113
	@RequestMapping(value = "/getCreateOffer", method = RequestMethod.GET)
116
	@RequestMapping(value = "/getCreateOffer", method = RequestMethod.GET)
Line 153... Line 156...
153
	@RequestMapping(value = "/offer/active/{offerId}", method = RequestMethod.GET)
156
	@RequestMapping(value = "/offer/active/{offerId}", method = RequestMethod.GET)
154
	public String activateOffer(HttpServletRequest request, @PathVariable int offerId, Model model)
157
	public String activateOffer(HttpServletRequest request, @PathVariable int offerId, Model model)
155
			throws ProfitMandiBusinessException, Exception {
158
			throws ProfitMandiBusinessException, Exception {
156
		Offer offer = offerRepository.selectById(offerId);
159
		Offer offer = offerRepository.selectById(offerId);
157
		offer.setActive(true);
160
		offer.setActive(true);
-
 
161
		oneDayCacheManager.getCache("catalog.published_yearmonth").evict(YearMonth.now());
158
		model.addAttribute("response", mvcResponseSender.createResponseString(true));
162
		model.addAttribute("response", mvcResponseSender.createResponseString(true));
159
		return "response";
163
		return "response";
160
	}
164
	}
161
 
165
 
162
	@RequestMapping(value = "/offerHistory", method = RequestMethod.GET)
166
	@RequestMapping(value = "/offerHistory", method = RequestMethod.GET)