| Line 1114... |
Line 1114... |
| 1114 |
|
1114 |
|
| 1115 |
@RequestMapping(value = "/getFranchiseVisit", method = RequestMethod.GET)
|
1115 |
@RequestMapping(value = "/getFranchiseVisit", method = RequestMethod.GET)
|
| 1116 |
public String getFranchiseVisit(HttpServletRequest request,
|
1116 |
public String getFranchiseVisit(HttpServletRequest request,
|
| 1117 |
@RequestParam(name = "authId", required = false) int authId, int yearMonth, Model model) throws Exception {
|
1117 |
@RequestParam(name = "authId", required = false) int authId, int yearMonth, Model model) throws Exception {
|
| 1118 |
|
1118 |
|
| 1119 |
LocalDateTime startDate = LocalDate.now().minusMonths(8).withDayOfMonth(1).atStartOfDay();
|
1119 |
LocalDateTime startDate = LocalDate.now().minusMonths(yearMonth).withDayOfMonth(1).atStartOfDay();
|
| 1120 |
LocalDateTime endDate = startDate.plusMonths(1).withDayOfMonth(1).toLocalDate().atStartOfDay();
|
1120 |
LocalDateTime endDate = startDate.plusMonths(1).withDayOfMonth(1).toLocalDate().atStartOfDay();
|
| 1121 |
|
1121 |
|
| 1122 |
DateRangeModel drm = DateRangeModel.of(startDate, endDate);
|
1122 |
DateRangeModel drm = DateRangeModel.of(startDate, endDate);
|
| 1123 |
|
1123 |
|
| 1124 |
List<FranchiseeVisit> visits = franchiseeVisitRepository.selectByAuthUserAndDateRange(drm, authId);
|
1124 |
List<FranchiseeVisit> visits = franchiseeVisitRepository.selectByAuthUserAndDateRange(drm, authId);
|