| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dsh.course.entity.*; |
| | | import com.dsh.course.entity.dto.SelectDto; |
| | | import com.dsh.course.feignclient.model.ExerciseVideo; |
| | | import com.dsh.course.model.*; |
| | | import com.dsh.course.model.dto.CourseChangeStateDTO; |
| | |
| | | @PostMapping("/base/course/aliPaymentCourseCallback") |
| | | public void aliPaymentCourseCallback(HttpServletRequest request, HttpServletResponse response){ |
| | | try { |
| | | System.err.println("=====支付宝回调======="); |
| | | Map<String, String> map = payMoneyUtil.alipayCallback(request); |
| | | if(null != map){ |
| | | String code = map.get("out_trade_no"); |
| | |
| | | } |
| | | |
| | | @PostMapping("/course/getHours") |
| | | public String getHours(@RequestBody Integer coursePackageId1){ |
| | | public Integer getHours(@RequestBody Integer coursePackageId1){ |
| | | return coursePackageService.getHours(coursePackageId1); |
| | | } |
| | | |
| | |
| | | @Autowired |
| | | private ICoursePackagePaymentConfigService packagePaymentConfigService; |
| | | @PostMapping("/course/times") |
| | | public List<Integer> times( @RequestBody Integer oneId){ |
| | | public List<SelectDto> times(@RequestBody Integer oneId){ |
| | | List<CoursePackagePaymentConfig> list = packagePaymentConfigService.list(new QueryWrapper<CoursePackagePaymentConfig>().eq("coursePackageId",oneId)); |
| | | List<Integer> integerList = new ArrayList<>(); |
| | | List<SelectDto> integerList = new ArrayList<>(); |
| | | for (CoursePackagePaymentConfig coursePackagePaymentConfig : list) { |
| | | integerList.add(coursePackagePaymentConfig.getClassHours()); |
| | | // integerList.add(coursePackagePaymentConfig.getClassHours()); |
| | | SelectDto selectDto = new SelectDto(); |
| | | selectDto.setId(coursePackagePaymentConfig.getId()); |
| | | selectDto.setValue(String.valueOf(coursePackagePaymentConfig.getClassHours())); |
| | | integerList.add(selectDto); |
| | | } |
| | | |
| | | |