|
@@ -50,8 +50,6 @@ public class StudentHonorsController {
|
|
|
@ApiOperation(value="学生荣誉列表(分页)")
|
|
|
@SaCheckPermission("studenthonors:detail")
|
|
|
public RT<PageOutput<StudentHonorsPageVo>> page(@Valid StudentHonorsPageDto dto){
|
|
|
- //传过来的班级id为加上学期id的,应该处理
|
|
|
- dto.setClassId(dto.getClassId() - dto.getBaseSemesterId());
|
|
|
Page<StudentHonorsPageVo> page = studentHonorsService.getPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
PageOutput<StudentHonorsPageVo> pageOutput = ConventPage.getPageOutput(page, StudentHonorsPageVo.class);
|
|
|
return RT.ok(pageOutput);
|
|
@@ -62,7 +60,6 @@ public class StudentHonorsController {
|
|
|
@ApiOperation(value = "学生荣誉列表(树)")
|
|
|
@SaCheckPermission("studenthonors:detail")
|
|
|
public RT<List<StudentHonorsTreeVo>> tree() {
|
|
|
-
|
|
|
List<StudentHonorsTreeVo> voList = new ArrayList<>();
|
|
|
studentHonorsService.getSemesterInfo().forEach((node) -> {
|
|
|
voList.add(new StudentHonorsTreeVo(){{
|
|
@@ -72,8 +69,7 @@ public class StudentHonorsController {
|
|
|
});
|
|
|
studentHonorsService.getClassInfo().forEach((node) -> {
|
|
|
voList.add(new StudentHonorsTreeVo(){{
|
|
|
- //为保证返回给前端的班级id唯一性,将学期id加在班级id上
|
|
|
- setId(node.getId()+node.getParentId());
|
|
|
+ setId(node.getId());
|
|
|
setName(node.getName());
|
|
|
setParentId(node.getParentId());
|
|
|
}});
|