| | |
| | | model.addAttribute("times", strings); |
| | | model.addAttribute("counts", counts); |
| | | |
| | | |
| | | return PREFIX + "classRecord.html"; |
| | | } |
| | | |
| | | /** |
| | | * 假期跳转到上课记录列表页 |
| | | * @param model |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/openClassRecord1") |
| | | public String openClassRecord1(Model model, Integer id){ |
| | | TCoursePackage tCoursePackage = coursePackageClient.queryById(id); |
| | | String[] start = tCoursePackage.getClassStartTime().split(","); |
| | | String[] end = tCoursePackage.getClassEndTime().split(","); |
| | | Integer counts = packagePaymentClient.queryByClassId(id); |
| | | |
| | | |
| | | List<String> strings = new ArrayList<>(); |
| | | for (int i = 0; i <start.length ; i++) { |
| | | String outTime = start[i] +"-" +end[0]; |
| | | strings.add(outTime); |
| | | } |
| | | |
| | | TStore store = storeService.getById(tCoursePackage.getStoreId()); |
| | | Coach coach = coachClient.queryCoachById(tCoursePackage.getCoachId()); |
| | | model.addAttribute("item", tCoursePackage); |
| | | model.addAttribute("store", store); |
| | | model.addAttribute("coach", coach); |
| | | model.addAttribute("times", strings); |
| | | model.addAttribute("counts", counts); |
| | | |
| | | return PREFIX + "classRecord2.html"; |
| | | } |
| | | |
| | | |
| | |
| | | String jsonString = jsonArray.getString(i); |
| | | String[] split = jsonString.split(" - "); |
| | | first.add(split[0]); |
| | | if (split.length>1) { |
| | | second.add(split[1]); |
| | | |
| | | } |
| | | } |
| | | String firstString = String.join(",",first); |
| | | String secondString = String.join(",",second); |
| | |
| | | @ResponseBody |
| | | @PostMapping("/makeUpMissedLessons") |
| | | public ResultUtil makeUpMissedLessons(Long id){ |
| | | System.out.println("==========coursePackagePaymentId======"+id); |
| | | System.out.println("==========coursePackage补课PaymentId======"+id); |
| | | return coursePackageService.makeUpMissedLessons(id); |
| | | } |
| | | |