|
|
@@ -1,7 +1,11 @@
|
|
|
package com.xjrsoft.module.student.service.impl;
|
|
|
|
|
|
+import cn.dev33.satoken.stp.StpUtil;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.github.yulichang.base.MPJBaseServiceImpl;
|
|
|
+import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
+import com.xjrsoft.module.base.mapper.BaseClassMapper;
|
|
|
import com.xjrsoft.module.room.mapper.RoomBedMapper;
|
|
|
import com.xjrsoft.module.room.vo.RoomBedInfoVo;
|
|
|
import com.xjrsoft.module.student.dto.BaseStudentInfoPageDto;
|
|
|
@@ -13,6 +17,8 @@ import com.xjrsoft.module.student.vo.BaseStudentInfoPageVo;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @title: 助学金申请
|
|
|
* @Author dzx
|
|
|
@@ -25,9 +31,18 @@ public class BaseStudentSchoolRollServiceImpl extends MPJBaseServiceImpl<BaseStu
|
|
|
|
|
|
private final BaseStudentSchoolRollMapper baseStudentSchoolRollMapper;
|
|
|
private final RoomBedMapper roomBedMapper;
|
|
|
+ private final BaseClassMapper baseClassMapper;
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public Page<BaseStudentInfoPageVo> getMobilePage(Page<BaseStudentInfoPageVo> page, BaseStudentInfoPageDto dto) {
|
|
|
+ long teacherId = StpUtil.getLoginIdAsLong();
|
|
|
+ List<BaseClass> classList = baseClassMapper.selectList(
|
|
|
+ new QueryWrapper<BaseClass>().lambda().eq(BaseClass::getTeacherId, teacherId)
|
|
|
+ );
|
|
|
+ if(classList != null && !classList.isEmpty()){
|
|
|
+ dto.setTeacherId(teacherId);
|
|
|
+ }
|
|
|
return baseStudentSchoolRollMapper.getMobilePage(page, dto);
|
|
|
}
|
|
|
|