Subversion Repositories SmartDukaan

Rev

Rev 35435 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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