| Line 74... |
Line 74... |
| 74 |
@RequestMapping(value = "/trial/all-trial", method = RequestMethod.GET)
|
74 |
@RequestMapping(value = "/trial/all-trial", method = RequestMethod.GET)
|
| 75 |
public String getAllTrialUser(HttpServletRequest request, Model model) throws Exception {
|
75 |
public String getAllTrialUser(HttpServletRequest request, Model model) throws Exception {
|
| 76 |
List<TrialForm> trialForms = trialFormRepository.selectAll();
|
76 |
List<TrialForm> trialForms = trialFormRepository.selectAll();
|
| 77 |
LOGGER.info("trialForms {}", trialForms.size());
|
77 |
LOGGER.info("trialForms {}", trialForms.size());
|
| 78 |
model.addAttribute("trialForms", trialForms);
|
78 |
model.addAttribute("trialForms", trialForms);
|
| - |
|
79 |
model.addAttribute("status", ProfitMandiConstants.Status.values());
|
| - |
|
80 |
return "all-trial-form";
|
| - |
|
81 |
}
|
| - |
|
82 |
|
| - |
|
83 |
@RequestMapping(value = "/trial/by-status", method = RequestMethod.GET)
|
| - |
|
84 |
public String getByStatus(
|
| - |
|
85 |
@RequestParam("status") ProfitMandiConstants.Status status,
|
| - |
|
86 |
Model model) {
|
| - |
|
87 |
|
| - |
|
88 |
List<TrialForm> trialForms = trialFormRepository.selectAllByStatus(status);
|
| - |
|
89 |
model.addAttribute("trialForms", trialForms);
|
| - |
|
90 |
model.addAttribute("status", ProfitMandiConstants.Status.values());
|
| - |
|
91 |
model.addAttribute("selectedStatus", status);
|
| 79 |
return "all-trial-form";
|
92 |
return "all-trial-form";
|
| 80 |
}
|
93 |
}
|
| 81 |
|
94 |
|
| 82 |
@RequestMapping(value = "/trial/verified", method = RequestMethod.GET)
|
95 |
@RequestMapping(value = "/trial/verified", method = RequestMethod.GET)
|
| 83 |
public String verifiedTrial(HttpServletRequest request, Model model) throws Exception {
|
96 |
public String verifiedTrial(HttpServletRequest request, Model model) throws Exception {
|