Subversion Repositories SmartDukaan

Rev

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

Rev 28935 Rev 28982
Line 503... Line 503...
503
			onBoardingModel = timelineStatus.values().stream().skip(2).map(x -> x).collect(Collectors.toList());
503
			onBoardingModel = timelineStatus.values().stream().skip(2).map(x -> x).collect(Collectors.toList());
504
		}
504
		}
505
		return responseSender.ok(onBoardingModel);
505
		return responseSender.ok(onBoardingModel);
506
 
506
 
507
	}
507
	}
-
 
508
 
-
 
509
	@RequestMapping(value = "/onBoardingTimelineVisibility", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
-
 
510
	@ApiImplicitParams({
-
 
511
			@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
-
 
512
	public ResponseEntity<?> onBoardingTimelineVisibility(HttpServletRequest request, Model model)
-
 
513
			throws ProfitMandiBusinessException {
-
 
514
		int userId = (int) request.getAttribute("userId");
-
 
515
		UserCart uc = userAccountRepository.getUserCart(userId);
-
 
516
 
-
 
517
		FofoStore fs = fofoStoreRepository.selectByRetailerId(uc.getUserId());
-
 
518
		PartnerOnBoardingPanel partnerOnBoardingPanel = partnerOnBoardingPanelRepository.selectByCode(fs.getCode());
-
 
519
		boolean status = true;
-
 
520
		if (partnerOnBoardingPanel != null) {
-
 
521
 
-
 
522
			status = storeTimelineTatService.getTimelineCompleted(partnerOnBoardingPanel.getId());
-
 
523
		}
-
 
524
 
-
 
525
		return responseSender.ok(status);
-
 
526
 
-
 
527
	}
508
}
528
}