|
@@ -415,8 +415,12 @@ public class StudentManageController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "学校端-人数统计")
|
|
|
@PostMapping("/userCount")
|
|
|
- public HttpResponseResult<StudentWrapper.StudentStat> userCount(@RequestBody StudentWrapper.StudentQuery queryInfo) {
|
|
|
+ public HttpResponseResult<StudentWrapper.StudentStat> userCount(@RequestBody StudentWrapper.StudentQuery queryInfo,@RequestHeader Integer coopId) {
|
|
|
|
|
|
+ if (coopId == null) {
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
+ queryInfo.setCooperationOrganId(coopId);
|
|
|
|
|
|
|
|
|
return succeed(null);
|
|
@@ -426,7 +430,13 @@ public class StudentManageController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "学校端-学员分页")
|
|
|
@PostMapping("/userPage")
|
|
|
- public HttpResponseResult<PageInfo<StudentWrapper.StudentList>> userPage(@RequestBody StudentWrapper.StudentQuery queryInfo) {
|
|
|
+ public HttpResponseResult<PageInfo<StudentWrapper.StudentList>> userPage(@RequestBody StudentWrapper.StudentQuery queryInfo,@RequestHeader Integer coopId) {
|
|
|
+
|
|
|
+ if (coopId == null) {
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
+ queryInfo.setCooperationOrganId(coopId);
|
|
|
+
|
|
|
|
|
|
|
|
|
IPage<StudentWrapper.StudentList> page = com.microsvc.toolkit.common.response.paging.QueryInfo.getPage(queryInfo);
|
|
@@ -438,24 +448,33 @@ public class StudentManageController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "学校端-学生所在乐团")
|
|
|
@PostMapping("/userMusicGroup")
|
|
|
- public HttpResponseResult<List<MusicGroup>> userMusicGroup(@RequestParam Integer studentId) {
|
|
|
+ public HttpResponseResult<List<MusicGroup>> userMusicGroup(@RequestParam Integer studentId,@RequestHeader Integer coopId) {
|
|
|
|
|
|
return succeed(null);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "学校端-学员详情")
|
|
|
@PostMapping("/userDetail")
|
|
|
- public HttpResponseResult<StudentWrapper.StudentDetail> userDetail(@RequestBody StudentWrapper.StudentQuery queryInfo) {
|
|
|
+ public HttpResponseResult<StudentWrapper.StudentDetail> userDetail(@RequestBody StudentWrapper.StudentQuery queryInfo,@RequestHeader Integer coopId) {
|
|
|
if (queryInfo.getStudentId() == null) {
|
|
|
return failed("参数错误");
|
|
|
}
|
|
|
+
|
|
|
+ if (coopId == null) {
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
+ queryInfo.setCooperationOrganId(coopId);
|
|
|
+
|
|
|
+
|
|
|
return succeed(null);
|
|
|
}
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "学校端-修改学员班级信息")
|
|
|
@PostMapping("/updateGrade")
|
|
|
- public HttpResponseResult<Boolean> updateGrade(@Valid @RequestBody StudentWrapper.UpdateStudent updateStudent) {
|
|
|
+ public HttpResponseResult<Boolean> updateGrade(@Valid @RequestBody StudentWrapper.UpdateStudent updateStudent,@RequestHeader Integer coopId) {
|
|
|
+ updateStudent.setCooperationOrganId(coopId);
|
|
|
+
|
|
|
return succeed(null);
|
|
|
}
|
|
|
|