|
@@ -525,6 +525,7 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public HttpResponseResult<OrderCreateRes> buyLiveCourse(OrderReq.OrderReqInfo orderReqInfo) {
|
|
|
+ log.info("学生购买直播课程组,请求参数:{}", JSON.toJSONString(orderReqInfo));
|
|
|
Map<String, Object> param = WrapperUtil.toMap(orderReqInfo.getBizContent());
|
|
|
Long groupId = WrapperUtil.toLong(param, "groupId", "课程组id不能为空!");
|
|
|
Long studentId = orderReqInfo.getUserId();
|
|
@@ -577,6 +578,7 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public void buyLiveCourseAfter(UserOrderDetailVo afterParam) {
|
|
|
+ log.info("学生购买直播课程组 after ,请求参数:{}", JSON.toJSONString(afterParam));
|
|
|
Map<String, Object> param = WrapperUtil.toMap(afterParam.getBizParam());
|
|
|
String orderNo = afterParam.getOrderNo();
|
|
|
Long studentId = (Long) param.get("studentId");
|
|
@@ -607,7 +609,10 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
|
|
|
* 学生购买直播课程-成功-回调
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void buyLiveCourseSuccess(String orderNo) {
|
|
|
+ @Override
|
|
|
+ public void buyLiveCourseSuccess( UserOrderDetailVo orderParam) {
|
|
|
+ log.info("学生购买直播课程-成功-回调,请求参数:{}", JSON.toJSONString(orderParam));
|
|
|
+ String orderNo = orderParam.getOrderNo();
|
|
|
//更新课程组的购买人数+1
|
|
|
CourseScheduleStudentPayment studentPayment = courseScheduleStudentPaymentService.getOne(Wrappers.<CourseScheduleStudentPayment>lambdaQuery()
|
|
|
.eq(CourseScheduleStudentPayment::getOrderNo, orderNo)
|