|
@@ -8,6 +8,7 @@ import com.yonge.cooleshow.biz.dal.dto.LiveCourseGroupDto;
|
|
import com.yonge.cooleshow.biz.dal.entity.CourseGroup;
|
|
import com.yonge.cooleshow.biz.dal.entity.CourseGroup;
|
|
import com.yonge.cooleshow.biz.dal.entity.CourseTimeEntity;
|
|
import com.yonge.cooleshow.biz.dal.entity.CourseTimeEntity;
|
|
import com.yonge.cooleshow.biz.dal.enums.ClientEnum;
|
|
import com.yonge.cooleshow.biz.dal.enums.ClientEnum;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.CourseScheduleEnum;
|
|
import com.yonge.cooleshow.biz.dal.enums.MessageTypeEnum;
|
|
import com.yonge.cooleshow.biz.dal.enums.MessageTypeEnum;
|
|
import com.yonge.cooleshow.biz.dal.service.AppVersionInfoService;
|
|
import com.yonge.cooleshow.biz.dal.service.AppVersionInfoService;
|
|
import com.yonge.cooleshow.biz.dal.service.CourseGroupService;
|
|
import com.yonge.cooleshow.biz.dal.service.CourseGroupService;
|
|
@@ -65,11 +66,12 @@ public class TeacherCourseGroupController extends BaseController {
|
|
@ApiImplicitParam(name = "groupStatus", dataType = "String", value = "课程组状态 ING(进行中) NOT_SALE(未开售,未上架) APPLY(报名中,销售中) COMPLETE(已完成) OUT_SALE(已下架)"),
|
|
@ApiImplicitParam(name = "groupStatus", dataType = "String", value = "课程组状态 ING(进行中) NOT_SALE(未开售,未上架) APPLY(报名中,销售中) COMPLETE(已完成) OUT_SALE(已下架)"),
|
|
@ApiImplicitParam(name = "page", dataType = "Integer", value = "页数"),
|
|
@ApiImplicitParam(name = "page", dataType = "Integer", value = "页数"),
|
|
@ApiImplicitParam(name = "rows", dataType = "Integer", value = "每页数量"),
|
|
@ApiImplicitParam(name = "rows", dataType = "Integer", value = "每页数量"),
|
|
|
|
+ @ApiImplicitParam(name = "courseType", dataType = "String", value = "课程类型"),
|
|
@ApiImplicitParam(name = "myself", dataType = "Boolean", value = "查看我自己的直播课"),
|
|
@ApiImplicitParam(name = "myself", dataType = "Boolean", value = "查看我自己的直播课"),
|
|
@ApiImplicitParam(name = "version", dataType = "String", value = "版本"),
|
|
@ApiImplicitParam(name = "version", dataType = "String", value = "版本"),
|
|
@ApiImplicitParam(name = "platform", dataType = "Integer", value = "平台"),
|
|
@ApiImplicitParam(name = "platform", dataType = "Integer", value = "平台"),
|
|
})
|
|
})
|
|
- @ApiOperation("分页查询直播课课程组列表")
|
|
+ @ApiOperation("分页查询直播课、小组课 课程组列表")
|
|
@PostMapping("/queryPageCourseGroup")
|
|
@PostMapping("/queryPageCourseGroup")
|
|
public HttpResponseResult<PageInfo<CourseGroupVo>> queryPageLiveCourseGroup(@RequestBody Map<String, Object> param) {
|
|
public HttpResponseResult<PageInfo<CourseGroupVo>> queryPageLiveCourseGroup(@RequestBody Map<String, Object> param) {
|
|
|
|
|
|
@@ -103,6 +105,9 @@ public class TeacherCourseGroupController extends BaseController {
|
|
if (appAuditVersion == YesOrNoEnum.NO && dto.getCoursePrice().compareTo(BigDecimal.ZERO) <= 0) {
|
|
if (appAuditVersion == YesOrNoEnum.NO && dto.getCoursePrice().compareTo(BigDecimal.ZERO) <= 0) {
|
|
return failed("课程价格不能为0元");
|
|
return failed("课程价格不能为0元");
|
|
}
|
|
}
|
|
|
|
+ if(StringUtils.isEmpty(dto.getCourseType())){
|
|
|
|
+ dto.setCourseType(CourseScheduleEnum.LIVE.getCode());
|
|
|
|
+ }
|
|
courseGroupService.addLiveCourse(dto);
|
|
courseGroupService.addLiveCourse(dto);
|
|
return succeed();
|
|
return succeed();
|
|
}
|
|
}
|