Subversion Repositories SmartDukaan

Rev

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

Rev 26384 Rev 26400
Line 338... Line 338...
338
		headers.setContentLength(byteArray.length);
338
		headers.setContentLength(byteArray.length);
339
		return new ResponseEntity<ByteArrayResource>(new ByteArrayResource(byteArray), headers, HttpStatus.OK);
339
		return new ResponseEntity<ByteArrayResource>(new ByteArrayResource(byteArray), headers, HttpStatus.OK);
340
 
340
 
341
	}
341
	}
342
 
342
 
343
	@RequestMapping(value = "/updatePriceDropImeis", method = RequestMethod.POST)
343
	@RequestMapping(value = "/updatePriceDropImeis-DNC", method = RequestMethod.POST)
344
	public String updatePriceDropImeis(HttpServletRequest request,
344
	public String updatePriceDropImeis(HttpServletRequest request,
345
			@RequestBody PriceDropImeisModel priceDropImeisModel, Model model)
345
			@RequestBody PriceDropImeisModel priceDropImeisModel, Model model)
346
			throws ProfitMandiBusinessException, Exception {
346
			throws ProfitMandiBusinessException, Exception {
347
		PriceDropImeiStatus status = PriceDropImeiStatus.PENDING;
347
		PriceDropImeiStatus status = PriceDropImeiStatus.PENDING;
348
 
348
 
349
		switch (priceDropImeisModel.getUpdatedStatus()) {
349
		switch (priceDropImeisModel.getUpdatedStatus()) {
350
			case "approved": {
350
			case "approved": {
351
				status = PriceDropImeiStatus.APPROVED;
351
				status = PriceDropImeiStatus.APPROVED_OURS;
352
				break;
352
				break;
353
			}
353
			}
354
			case "rejected": {
354
			case "rejected": {
355
				status = PriceDropImeiStatus.REJECTED;
355
				status = PriceDropImeiStatus.REJECTED;
356
				break;
356
				break;