| | |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/editCoursePackageState1") |
| | | public ResultUtil editCoursePackageState1(Integer id, Integer state){ |
| | | TCoursePackage coursePackage = new TCoursePackage(); |
| | | coursePackage.setId(id); |
| | | coursePackage.setStatus(state); |
| | | coursePackageService.editCoursePackageState(coursePackage); |
| | | return ResultUtil.success(); |
| | | } |
| | | |
| | | /** |
| | | * 编辑课包折扣 |
| | | * @param json |
| | |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/afterClassExercises") |
| | | public ResultUtil afterClassExercises(Long id, Integer courseId, Integer integral){ |
| | | public ResultUtil afterClassExercises(Long id, Integer courseId, Integer integral,Integer packId){ |
| | | return coursePackageService.afterClassExercises(id, courseId, integral); |
| | | } |
| | | |