|
@@ -1,12 +1,9 @@
|
|
package com.yonge.cooleshow.admin.controller;
|
|
package com.yonge.cooleshow.admin.controller;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
|
import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
|
|
import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
|
|
-import com.yonge.cooleshow.auth.api.entity.SysUser;
|
|
|
|
import com.yonge.cooleshow.biz.dal.dto.search.CourseGroupDetailSearch;
|
|
import com.yonge.cooleshow.biz.dal.dto.search.CourseGroupDetailSearch;
|
|
import com.yonge.cooleshow.biz.dal.dto.search.CourseGroupSearch;
|
|
import com.yonge.cooleshow.biz.dal.dto.search.CourseGroupSearch;
|
|
import com.yonge.cooleshow.biz.dal.entity.VideoLessonGroupDetail;
|
|
import com.yonge.cooleshow.biz.dal.entity.VideoLessonGroupDetail;
|
|
-import com.yonge.cooleshow.biz.dal.sdk.WithdrawSdk;
|
|
|
|
import com.yonge.cooleshow.biz.dal.service.CourseGroupService;
|
|
import com.yonge.cooleshow.biz.dal.service.CourseGroupService;
|
|
import com.yonge.cooleshow.biz.dal.service.CourseScheduleService;
|
|
import com.yonge.cooleshow.biz.dal.service.CourseScheduleService;
|
|
import com.yonge.toolset.mybatis.support.PageUtil;
|
|
import com.yonge.toolset.mybatis.support.PageUtil;
|
|
@@ -17,14 +14,11 @@ import com.yonge.toolset.base.page.PageInfo;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.http.HttpStatus;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.NotNull;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
-import java.util.Map;
|
|
|
|
-import java.util.UUID;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Author: cy
|
|
* @Author: cy
|
|
@@ -41,10 +35,8 @@ public class CourseGroupController extends BaseController {
|
|
private SysUserFeignService sysUserFeignService;
|
|
private SysUserFeignService sysUserFeignService;
|
|
@Autowired
|
|
@Autowired
|
|
private CourseScheduleService courseScheduleService;
|
|
private CourseScheduleService courseScheduleService;
|
|
- @Autowired
|
|
|
|
- private WithdrawSdk sdk;
|
|
|
|
|
|
|
|
- @ApiOperation(value = "课程组管理-陪练课",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "课程组管理-陪练课", notes = "{\n" +
|
|
" \"subjectId\":20,\n" +
|
|
" \"subjectId\":20,\n" +
|
|
" \"search\":\"师\",\n" +
|
|
" \"search\":\"师\",\n" +
|
|
" \"status\":\"ING\"\n" +
|
|
" \"status\":\"ING\"\n" +
|
|
@@ -54,7 +46,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPracticeGroup(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPracticeGroup(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "课程组管理-陪练课-详情",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "课程组管理-陪练课-详情", notes = "{\n" +
|
|
" \"courseGroupId\": 140,\n" +
|
|
" \"courseGroupId\": 140,\n" +
|
|
" \"teacherSign\": 0,\n" +
|
|
" \"teacherSign\": 0,\n" +
|
|
" \"studentSign\": 0,\n" +
|
|
" \"studentSign\": 0,\n" +
|
|
@@ -69,7 +61,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPracticeGroupDetail(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPracticeGroupDetail(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "课程组管理-直播课",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "课程组管理-直播课", notes = "{\n" +
|
|
" \"subjectId\":73,\n" +
|
|
" \"subjectId\":73,\n" +
|
|
" \"search\":\"夏\",\n" +
|
|
" \"search\":\"夏\",\n" +
|
|
" \"status\":\"ING\"\n" +
|
|
" \"status\":\"ING\"\n" +
|
|
@@ -79,7 +71,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectLiveGroup(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectLiveGroup(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "课程组管理-直播课-购买学员",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "课程组管理-直播课-购买学员", notes = "{\n" +
|
|
" \"groupId\":140,\n" +
|
|
" \"groupId\":140,\n" +
|
|
" \"search\":\"游\",\n" +
|
|
" \"search\":\"游\",\n" +
|
|
" \"orderNo\":\"22051615250800001\"\n" +
|
|
" \"orderNo\":\"22051615250800001\"\n" +
|
|
@@ -89,7 +81,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectLiveGroupStudent(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectLiveGroupStudent(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "课程组管理-直播课-教学计划",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "课程组管理-直播课-教学计划", notes = "{\n" +
|
|
" \"groupId\":140,\n" +
|
|
" \"groupId\":140,\n" +
|
|
" \"courseId\":\"391\",\n" +
|
|
" \"courseId\":\"391\",\n" +
|
|
" \"salaryStatus\":\"NOT_START\",\n" +
|
|
" \"salaryStatus\":\"NOT_START\",\n" +
|
|
@@ -101,7 +93,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectLiveGroupPlan(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectLiveGroupPlan(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "课程组管理-视频课",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "课程组管理-视频课", notes = "{\n" +
|
|
" \"subjectId\":21,\n" +
|
|
" \"subjectId\":21,\n" +
|
|
" \"search\":\"老\"\n" +
|
|
" \"search\":\"老\"\n" +
|
|
"}")
|
|
"}")
|
|
@@ -110,7 +102,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectVideoGroup(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectVideoGroup(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "课程组管理-视频课-购买学员",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "课程组管理-视频课-购买学员", notes = "{\n" +
|
|
" \"groupId\":51,\n" +
|
|
" \"groupId\":51,\n" +
|
|
" \"orderNo\":\"22050720002900001\",\n" +
|
|
" \"orderNo\":\"22050720002900001\",\n" +
|
|
" \"search\":\"1\",\n" +
|
|
" \"search\":\"1\",\n" +
|
|
@@ -122,7 +114,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectVideoGroupStudent(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectVideoGroupStudent(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "课程组管理-视频课-教学计划",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "课程组管理-视频课-教学计划", notes = "{\n" +
|
|
" \"groupId\":18\n" +
|
|
" \"groupId\":18\n" +
|
|
"}")
|
|
"}")
|
|
@PostMapping(value = "/video/plan")
|
|
@PostMapping(value = "/video/plan")
|
|
@@ -136,7 +128,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(courseGroupService.selectLiveGroupInfo(groupId));
|
|
return succeed(courseGroupService.selectLiveGroupInfo(groupId));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "课程组管理-琴房课",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "课程组管理-琴房课", notes = "{\n" +
|
|
" \"subjectId\":20,\n" +
|
|
" \"subjectId\":20,\n" +
|
|
" \"search\":\"师\",\n" +
|
|
" \"search\":\"师\",\n" +
|
|
" \"status\":\"ING\"\n" +
|
|
" \"status\":\"ING\"\n" +
|
|
@@ -146,7 +138,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPianoGroup(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPianoGroup(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "课程组管理-琴房课-详情",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "课程组管理-琴房课-详情", notes = "{\n" +
|
|
" \"courseGroupId\":334,\n" +
|
|
" \"courseGroupId\":334,\n" +
|
|
" \"search\":\"\",\n" +
|
|
" \"search\":\"\",\n" +
|
|
" \"status\":\"\",\n" +
|
|
" \"status\":\"\",\n" +
|
|
@@ -163,10 +155,10 @@ public class CourseGroupController extends BaseController {
|
|
@ApiOperation(value = "课程组管理-琴房课-详情-学员名单")
|
|
@ApiOperation(value = "课程组管理-琴房课-详情-学员名单")
|
|
@GetMapping(value = "/piano/student")
|
|
@GetMapping(value = "/piano/student")
|
|
public HttpResponseResult<List<StudentSignVo>> studentSign(@NotNull Long courseId) {
|
|
public HttpResponseResult<List<StudentSignVo>> studentSign(@NotNull Long courseId) {
|
|
- return succeed(courseGroupService.studentSign(courseId,null));
|
|
|
|
|
|
+ return succeed(courseGroupService.studentSign(courseId, null));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "学员管理-琴房课",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "学员管理-琴房课", notes = "{\n" +
|
|
" \"studentId\":20,\n" +
|
|
" \"studentId\":20,\n" +
|
|
" \"search\":\"师\",\n" +
|
|
" \"search\":\"师\",\n" +
|
|
" \"status\":\"ING\"\n" +
|
|
" \"status\":\"ING\"\n" +
|
|
@@ -176,7 +168,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPianoGroupStudent(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPianoGroupStudent(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "学员管理-琴房课-详情",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "学员管理-琴房课-详情", notes = "{\n" +
|
|
" \"studentId\":20,\n" +
|
|
" \"studentId\":20,\n" +
|
|
" \"courseGroupId\":334,\n" +
|
|
" \"courseGroupId\":334,\n" +
|
|
" \"search\":\"\",\n" +
|
|
" \"search\":\"\",\n" +
|
|
@@ -197,7 +189,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(courseScheduleService.selectRemainTime(teacherId));
|
|
return succeed(courseScheduleService.selectRemainTime(teacherId));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "老师管理-琴房课",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "老师管理-琴房课", notes = "{\n" +
|
|
" \"teacherId\":20,\n" +
|
|
" \"teacherId\":20,\n" +
|
|
" \"search\":\"师\",\n" +
|
|
" \"search\":\"师\",\n" +
|
|
" \"status\":\"ING\"\n" +
|
|
" \"status\":\"ING\"\n" +
|
|
@@ -207,7 +199,7 @@ public class CourseGroupController extends BaseController {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPianoGroupTeacher(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPianoGroupTeacher(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "老师管理-琴房课-详情",notes = "{\n" +
|
|
|
|
|
|
+ @ApiOperation(value = "老师管理-琴房课-详情", notes = "{\n" +
|
|
" \"teacherId\":20,\n" +
|
|
" \"teacherId\":20,\n" +
|
|
" \"courseGroupId\":334,\n" +
|
|
" \"courseGroupId\":334,\n" +
|
|
" \"search\":\"\",\n" +
|
|
" \"search\":\"\",\n" +
|
|
@@ -221,10 +213,4 @@ public class CourseGroupController extends BaseController {
|
|
public HttpResponseResult<PageInfo<CourseGroupPianoDetailVo>> selectPianoGroupTeacherDetail(@Validated @RequestBody CourseGroupDetailSearch search) {
|
|
public HttpResponseResult<PageInfo<CourseGroupPianoDetailVo>> selectPianoGroupTeacherDetail(@Validated @RequestBody CourseGroupDetailSearch search) {
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPianoGroupTeacherDetail(PageUtil.getPage(search), search)));
|
|
return succeed(PageUtil.pageInfo(courseGroupService.selectPianoGroupTeacherDetail(PageUtil.getPage(search), search)));
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
- @GetMapping("/test")
|
|
|
|
- public void aaa(){
|
|
|
|
- sdk.test();
|
|
|
|
- }
|
|
|
|
}
|
|
}
|