| Line 1075... |
Line 1075... |
| 1075 |
model.addAttribute("end",offset+limit);
|
1075 |
model.addAttribute("end",offset+limit);
|
| 1076 |
}
|
1076 |
}
|
| 1077 |
|
1077 |
|
| 1078 |
return "sale-history";
|
1078 |
return "sale-history";
|
| 1079 |
}
|
1079 |
}
|
| - |
|
1080 |
|
| - |
|
1081 |
|
| - |
|
1082 |
@RequestMapping(value = "/getPaginatedSaleHistory")
|
| - |
|
1083 |
public String getSaleHistoryPaginated(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.START_TIME, required = false) String startTimeString, @RequestParam(name = ProfitMandiConstants.END_TIME, required = false) String endTimeString, @RequestParam(name = "offset", defaultValue = "0") int offset, @RequestParam(name = "limit", defaultValue="10") int limit, @RequestParam(name = ProfitMandiConstants.INVOICE_NUMBER, defaultValue="") String invoiceNumber, @RequestParam(name = "searchType", defaultValue = "") String searchType, Model model) throws Exception{
|
| - |
|
1084 |
LoginDetails loginDetails;
|
| - |
|
1085 |
try {
|
| - |
|
1086 |
loginDetails = cookiesProcessor.getCookiesObject(request);
|
| - |
|
1087 |
} catch (ProfitMandiBusinessException e) {
|
| - |
|
1088 |
model.addAttribute("loginResponse", mvcResponseSender.createResponseString("RTLR_1009", false, "/login"));
|
| - |
|
1089 |
return "response";
|
| - |
|
1090 |
}
|
| - |
|
1091 |
LocalDateTime startDateTime = StringUtils.toDateTime(startTimeString);
|
| - |
|
1092 |
LocalDateTime endDateTime = StringUtils.toDateTime(endTimeString);
|
| - |
|
1093 |
|
| - |
|
1094 |
List<FofoOrder> saleHistories = fofoOrderRepository.selectByFofoId(loginDetails.getFofoId(), startDateTime, endDateTime, offset, limit);
|
| - |
|
1095 |
model.addAttribute("saleHistories", saleHistories);
|
| - |
|
1096 |
return "sale-history-paginated";
|
| - |
|
1097 |
}
|
| 1080 |
|
1098 |
|
| 1081 |
}
|
1099 |
}
|