|
@@ -137,14 +137,13 @@ public class CourseGroupServiceImpl extends ServiceImpl<CourseGroupDao, CourseGr
|
|
|
* <p> - groupStatus 课程组状态 ING(进行中) NOT_SALE(未开售,未上架) APPLY(报名中,销售中) COMPLETE(已完成)
|
|
|
* <p> - row 条数
|
|
|
* <p> - page 页数
|
|
|
+ * <p> - search 模糊搜索关键字
|
|
|
*/
|
|
|
public PageInfo<CourseGroupVo> queryPageLiveCourseGroup(Map<String, Object> param) {
|
|
|
//查询该月的所有课程
|
|
|
- param.put("teacherId", param.get("teacherId"));
|
|
|
- param.put("groupStatus", param.get("groupStatus"));
|
|
|
param.put("type", CourseScheduleEnum.LIVE.getCode());
|
|
|
Page<CourseGroupVo> pageInfo = PageUtil.getPageInfo(param);
|
|
|
- pageInfo.setAsc("a.start_time_");
|
|
|
+ pageInfo.setAsc("b.created_time_");
|
|
|
IPage<CourseGroupVo> page = baseMapper.queryTeacherCourseGroup(pageInfo, param);
|
|
|
return PageUtil.pageInfo(page);
|
|
|
}
|
|
@@ -525,6 +524,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 +577,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 +608,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)
|