Subversion Repositories SmartDukaan

Rev

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

Rev 34902 Rev 35435
Line 240... Line 240...
240
	@RequestMapping(value = "/byPassRequests", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
240
	@RequestMapping(value = "/byPassRequests", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
241
	@ApiImplicitParams({
241
	@ApiImplicitParams({
242
			@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
242
			@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
243
 
243
 
244
	@ApiOperation(value = "byPassRequests")
244
	@ApiOperation(value = "byPassRequests")
-
 
245
	@Transactional(readOnly = true)
245
	public ResponseEntity<?> byPassRequests(HttpServletRequest request, Model model) throws Exception {
246
	public ResponseEntity<?> byPassRequests(HttpServletRequest request, Model model) throws Exception {
246
 
247
 
247
		int userId = (int) request.getAttribute("userId");
248
		int userId = (int) request.getAttribute("userId");
248
 
249
 
249
		User user = userRepository.selectById(userId);
250
		User user = userRepository.selectById(userId);
Line 412... Line 413...
412
		return responseSender.ok(false);
413
		return responseSender.ok(false);
413
	}
414
	}
414
 
415
 
415
	@RequestMapping(value = "/partner/hidAllocation", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
416
	@RequestMapping(value = "/partner/hidAllocation", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
416
	@ApiImplicitParams({@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header")})
417
	@ApiImplicitParams({@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header")})
-
 
418
	@Transactional(readOnly = true)
417
	public ResponseEntity<?> getItemHidAllocation(HttpServletRequest request) throws
419
	public ResponseEntity<?> getItemHidAllocation(HttpServletRequest request) throws
418
			Exception {
420
			Exception {
419
		List<HidAllocationModel> hidAllocationModels = new ArrayList<>();
421
		List<HidAllocationModel> hidAllocationModels = new ArrayList<>();
420
 
422
 
421
		int userId = (int) request.getAttribute(ProfitMandiConstants.USER_ID);
423
		int userId = (int) request.getAttribute(ProfitMandiConstants.USER_ID);