|
|
@@ -167,54 +167,8 @@ public class BaseStudentCadreController {
|
|
|
public RT<PageOutput<BaseStudentCadrePageVo>> page(@Valid BaseStudentCadrePageDto dto){
|
|
|
// 如果未传班级id和职务id,
|
|
|
if(!StrUtil.equals(dto.getLevel(), StudentCadreLevelEnum.CLASS.getCode()) && ObjectUtil.isEmpty(dto.getPostId())){
|
|
|
- IPage<BaseStudentCadrePageVo> page = new IPage<BaseStudentCadrePageVo>() {
|
|
|
- @Override
|
|
|
- public List<OrderItem> orders() {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public List<BaseStudentCadrePageVo> getRecords() {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public IPage<BaseStudentCadrePageVo> setRecords(List<BaseStudentCadrePageVo> records) {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public long getTotal() {
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public IPage<BaseStudentCadrePageVo> setTotal(long total) {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public long getSize() {
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public IPage<BaseStudentCadrePageVo> setSize(long size) {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public long getCurrent() {
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public IPage<BaseStudentCadrePageVo> setCurrent(long current) {
|
|
|
- return null;
|
|
|
- }
|
|
|
- };
|
|
|
- page.setRecords(new ArrayList<>());
|
|
|
- return RT.ok( ConventPage.getPageOutput(page, BaseStudentCadrePageVo.class));
|
|
|
+ PageOutput<BaseStudentCadrePageVo> result = ConventPage.getPageOutputNull(BaseStudentCadrePageVo.class);
|
|
|
+ return RT.ok(result);
|
|
|
}
|
|
|
IPage<BaseStudentCadrePageVo> page = baseStudentCadreService.selectJoinListPage(ConventPage.getPage(dto), BaseStudentCadrePageVo.class,
|
|
|
MPJWrappers.<BaseStudentCadre>lambdaJoin()
|