|
@@ -94,7 +94,10 @@ public class BaseNewStudentController {
|
|
@ApiOperation(value="新生报到(分页)")
|
|
@ApiOperation(value="新生报到(分页)")
|
|
@SaCheckPermission("basenewstudent:detail")
|
|
@SaCheckPermission("basenewstudent:detail")
|
|
public RT<PageOutput<BaseNewStudentPageVo>> reportPage(@Valid BaseNewStudentPageDto dto){
|
|
public RT<PageOutput<BaseNewStudentPageVo>> reportPage(@Valid BaseNewStudentPageDto dto){
|
|
-
|
|
|
|
|
|
+ List<String> roleList = StpUtil.getRoleList();
|
|
|
|
+ if(roleList.size() == 2 && roleList.contains("CLASSTE") && roleList.contains("TEACHER") && dto.getTeacherId() == null){
|
|
|
|
+ dto.setTeacherId(StpUtil.getLoginIdAsLong());
|
|
|
|
+ }
|
|
Page<BaseNewStudentPageVo> page = baseNewStudentService.getPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
Page<BaseNewStudentPageVo> page = baseNewStudentService.getPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
PageOutput<BaseNewStudentPageVo> pageOutput = ConventPage.getPageOutput(page, BaseNewStudentPageVo.class);
|
|
PageOutput<BaseNewStudentPageVo> pageOutput = ConventPage.getPageOutput(page, BaseNewStudentPageVo.class);
|
|
return RT.ok(pageOutput);
|
|
return RT.ok(pageOutput);
|