Subversion Repositories SmartDukaan

Rev

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

Rev 21654 Rev 21657
Line 121... Line 121...
121
			return "response";
121
			return "response";
122
		}
122
		}
123
	}
123
	}
124
	
124
	
125
	@RequestMapping(value = "/grnHistoryByFofoId")
125
	@RequestMapping(value = "/grnHistoryByFofoId")
126
	public String grnHistoryByFofoId(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.START_TIME) String startTimeString, @RequestParam(name = ProfitMandiConstants.END_TIME) String endTimeString, @RequestParam(name = ProfitMandiConstants.PAGE_NUMBER) int pageNumber, @RequestParam(name = ProfitMandiConstants.PAGE_SIZE) int pageSize, Model model) throws Exception{
126
	public String grnHistoryByFofoId(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.START_TIME, required = false) String startTimeString, @RequestParam(name = ProfitMandiConstants.END_TIME, required = false) String endTimeString, @RequestParam(name = ProfitMandiConstants.PAGE_NUMBER) int pageNumber, @RequestParam(name = ProfitMandiConstants.PAGE_SIZE) int pageSize, Model model) throws Exception{
127
		FofoDetails fofoDetails;
127
		FofoDetails fofoDetails;
128
		try {
128
		try {
129
			fofoDetails = cookiesFetcher.getCookiesObject(request);
129
			fofoDetails = cookiesFetcher.getCookiesObject(request);
130
		} catch (ProfitMandiBusinessException e) {
130
		} catch (ProfitMandiBusinessException e) {
131
			model.addAttribute("loginResponse", mvcResponseSender.createResponseString("RTLR_1009", false, "/login"));
131
			model.addAttribute("loginResponse", mvcResponseSender.createResponseString("RTLR_1009", false, "/login"));
132
			return "response";
132
			return "response";
133
		}
133
		}
-
 
134
		
134
		LocalDateTime startDateTime = StringUtils.toDateTime(startTimeString);
135
		LocalDateTime startDateTime = StringUtils.toDateTime(startTimeString);
135
		LocalDateTime endDateTime = StringUtils.toDateTime(endTimeString);
136
		LocalDateTime endDateTime = StringUtils.toDateTime(endTimeString);
136
		
137
		
137
		model.addAttribute("grnHistories", purchaseRepository.selectByFofoId(fofoDetails.getFofoId(), startDateTime, endDateTime, pageNumber, pageSize));
138
		model.addAttribute("grnHistories", purchaseRepository.selectByFofoId(fofoDetails.getFofoId(), startDateTime, endDateTime, pageNumber, pageSize));
138
		return "";
139
		return "";