Subversion Repositories SmartDukaan

Rev

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

Rev 31666 Rev 32041
Line 234... Line 234...
234
	@RequestMapping(value = "/getSanctionRequest", method = RequestMethod.GET)
234
	@RequestMapping(value = "/getSanctionRequest", method = RequestMethod.GET)
235
	public String getSanctionRequest(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
235
	public String getSanctionRequest(HttpServletRequest request, Model model) throws ProfitMandiBusinessException {
236
 
236
 
237
		List<SanctionRequest> sanctionRequests = sanctionRequestRepository.selectByDate(LocalDate.now());
237
		List<SanctionRequest> sanctionRequests = sanctionRequestRepository.selectByDate(LocalDate.now());
238
 
238
 
-
 
239
		List<Integer> authIds = sanctionRequests.stream().map(x -> x.getAuthId()).collect(Collectors.toList());
-
 
240
		Map<Integer, String> authMap = authRepository.selectAllAuthUserByIds(authIds).stream().collect(Collectors.toMap(x -> x.getId(), x -> x.getFullName()));
-
 
241
 
239
		if (!sanctionRequests.isEmpty()) {
242
		if (!sanctionRequests.isEmpty()) {
240
 
243
 
241
			List<Integer> fofoIds = sanctionRequests.stream().map(x -> x.getFofoId()).collect(Collectors.toList());
244
			List<Integer> fofoIds = sanctionRequests.stream().map(x -> x.getFofoId()).collect(Collectors.toList());
242
 
245
 
243
			Map<Integer, Long> partnerCreditDaysMap = new HashMap<>();
246
			Map<Integer, Long> partnerCreditDaysMap = new HashMap<>();
Line 281... Line 284...
281
			model.addAttribute("userWalletMap", userWalletMap);
284
			model.addAttribute("userWalletMap", userWalletMap);
282
 
285
 
283
		}
286
		}
284
 
287
 
285
		model.addAttribute("sanctionRequests", sanctionRequests);
288
		model.addAttribute("sanctionRequests", sanctionRequests);
-
 
289
		model.addAttribute("authMap", authMap);
286
 
290
 
287
		model.addAttribute("sanctionStatus", SanctionStatus.values());
291
		model.addAttribute("sanctionStatus", SanctionStatus.values());
288
		return "sanction-request";
292
		return "sanction-request";
289
 
293
 
290
	}
294
	}