|
|
@@ -9,10 +9,13 @@ import com.xjrsoft.common.page.PageOutput;
|
|
|
import com.xjrsoft.module.student.dto.BaseStudentInfoDetailDto;
|
|
|
import com.xjrsoft.module.student.dto.BaseStudentInfoPageDto;
|
|
|
import com.xjrsoft.module.student.dto.UpdateBaseStudentInfoDto;
|
|
|
+import com.xjrsoft.module.student.entity.BaseStudentUser;
|
|
|
import com.xjrsoft.module.student.service.IBaseStudentSchoolRollService;
|
|
|
+import com.xjrsoft.module.student.service.IStudentManagerService;
|
|
|
import com.xjrsoft.module.student.vo.BaseStudentInfoDetailVo;
|
|
|
import com.xjrsoft.module.student.vo.BaseStudentInfoPageDataVo;
|
|
|
import com.xjrsoft.module.student.vo.BaseStudentInfoPageVo;
|
|
|
+import com.xjrsoft.module.student.vo.BaseStudentUserPageVo;
|
|
|
import com.xjrsoft.module.student.vo.MobileClassStatisticsVo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@@ -38,7 +41,7 @@ import javax.validation.Valid;
|
|
|
@AllArgsConstructor
|
|
|
public class BaseStudentInfoController {
|
|
|
|
|
|
-
|
|
|
+ private final IStudentManagerService studentManagerService;
|
|
|
private final IBaseStudentSchoolRollService baseStudentSchoolRollService;
|
|
|
|
|
|
@GetMapping(value = "/mobile-page")
|
|
|
@@ -46,6 +49,10 @@ public class BaseStudentInfoController {
|
|
|
@SaCheckPermission("basestudentpost:detail")
|
|
|
public RT<PageOutput<BaseStudentInfoPageVo>> mobilePage(@Valid BaseStudentInfoPageDto dto){
|
|
|
Page<BaseStudentInfoPageVo> mobilePage = baseStudentSchoolRollService.getMobilePage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
+ for (BaseStudentInfoPageVo record : mobilePage.getRecords()) {
|
|
|
+ BaseStudentUser user = studentManagerService.getById(record.getId());
|
|
|
+ record.setAvatar(user.getAvatar());
|
|
|
+ }
|
|
|
PageOutput<BaseStudentInfoPageVo> pageOutput = ConventPage.getPageOutput(mobilePage, BaseStudentInfoPageVo.class);
|
|
|
return RT.ok(pageOutput);
|
|
|
}
|