| | |
| | | return videoVos; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @PostMapping("/base/coursePack/allPaymentCourseList") |
| | | @ResponseBody |
| | | public List<CouponPaymentVo> getAppuserCourseList(@RequestBody Integer appUserId) { |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 已报名课程详情 |
| | | */ |
| | |
| | | @ApiImplicitParam(name = "orderId", value = "订单id", dataType = "int") |
| | | |
| | | }) |
| | | public ResultUtil<CourseDetailsResponse> getRegisteredData(Long coursePayId, String lon, String lat, Integer orderId) { |
| | | public ResultUtil<CourseDetailsResponse> getRegisteredData(Long coursePayId, String lon, String lat) { |
| | | try { |
| | | Integer appUserId = tokenUtil.getUserIdFormRedis(); |
| | | if (null == appUserId) { |
| | |
| | | } |
| | | CourseDetailsResponse courseDetailsResponse = packagePaymentService.queryRegisteredCourseDetails(coursePayId, appUserId, lon, lat); |
| | | |
| | | |
| | | |
| | | |
| | | // |
| | | // if (orderId != null) { |
| | | // TOrder byId = orderService.getById(orderId); |
| | | // courseDetailsResponse.setAmount(byId.getPrice()); |
| | |
| | | return packagePaymentService.getById(id); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/coursePackagePayment/queryCoursePackagePaymentById1") |
| | | public CoursePackageOrderStudent queryCoursePackagePaymentById1(@RequestParam("id") Long id) { |
| | | return coursePackageOrderStudentService.getById(id); |
| | | } |
| | | |
| | | |
| | | // @Autowired |
| | | // private ICoursePackageOrderStudentService orderStudentService; |
| | |
| | | System.out.println("editCoursePackagePayment1====coursePackagePayment" + coursePackagePayment); |
| | | // coursePackagePayment.setCoursePackageId(null); |
| | | packagePaymentService.updateBytime(coursePackagePayment); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/coursePackagePayment/editCoursePackagePayment2") |
| | | public void editCoursePackagePayment2(@RequestBody CoursePackageOrderStudent coursePackageOrderStudent) { |
| | | System.out.println("editCoursePackagePayment1====coursePackagePayment" + coursePackageOrderStudent); |
| | | // coursePackagePayment.setCoursePackageId(null); |
| | | // packagePaymentService.updateBytime(coursePackagePayment); |
| | | |
| | | coursePackageOrderStudentService.updateById(coursePackageOrderStudent); |
| | | } |
| | | |
| | | |
| | |
| | | map.put("name", store.getName()); |
| | | map.put("lon", lon); |
| | | map.put("lat", lat); |
| | | |
| | | |
| | | // 找出门店的所有课程 排出体验 |
| | | List<TCoursePackage> list = tcpService.list(new LambdaQueryWrapper<TCoursePackage>().eq(TCoursePackage::getStoreId, courseDetailReq.getStoreId()).ne(TCoursePackage::getType, 3).eq(TCoursePackage::getState, 1).like(TCoursePackage::getClassWeeks, week)); |
| | | List<Integer> collect = list.stream().map(TCoursePackage::getId).collect(Collectors.toList()); |