肖海南查老师所教的学生方法修改

master
总裁 5 months ago
parent e4f05536b8
commit 9735c0e1bd
  1. 1
      src/main/java/com/teaching/backend/service/courses/ICoursesService.java
  2. 3
      src/main/java/com/teaching/backend/service/impl/courses/CoursesServiceImpl.java
  3. 2
      src/main/java/com/teaching/backend/service/impl/umsAdmin/UmsStudentManageServiceImpl.java

@ -4,6 +4,7 @@ package com.teaching.backend.service.courses;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.teaching.backend.model.dto.courses.CoursesDTO; import com.teaching.backend.model.dto.courses.CoursesDTO;
import com.teaching.backend.model.dto.courses.PageDTO; import com.teaching.backend.model.dto.courses.PageDTO;
import com.teaching.backend.model.dto.umsAdmin.UmsStudentPageQueryDTO;
import com.teaching.backend.model.entity.courses.Courses; import com.teaching.backend.model.entity.courses.Courses;
import com.teaching.backend.model.entity.umsAdmin.UmsStudent; import com.teaching.backend.model.entity.umsAdmin.UmsStudent;
import com.teaching.backend.model.entity.umsAdmin.UmsStudentManage; import com.teaching.backend.model.entity.umsAdmin.UmsStudentManage;

@ -20,6 +20,7 @@ import com.teaching.backend.mapper.umsAdmin.UmsTeacherMapper;
import com.teaching.backend.mapper.umsAdmin.UmsUserMapper; import com.teaching.backend.mapper.umsAdmin.UmsUserMapper;
import com.teaching.backend.model.dto.courses.CoursesDTO; import com.teaching.backend.model.dto.courses.CoursesDTO;
import com.teaching.backend.model.dto.courses.PageDTO; import com.teaching.backend.model.dto.courses.PageDTO;
import com.teaching.backend.model.dto.umsAdmin.UmsStudentPageQueryDTO;
import com.teaching.backend.model.entity.chapter.Chapter; import com.teaching.backend.model.entity.chapter.Chapter;
import com.teaching.backend.model.entity.courses.*; import com.teaching.backend.model.entity.courses.*;
import com.teaching.backend.model.entity.records.CourseLearningRecord; import com.teaching.backend.model.entity.records.CourseLearningRecord;
@ -364,12 +365,14 @@ public class CoursesServiceImpl extends ServiceImpl<CoursesMapper, Courses> impl
List<PersonalCenterStudentListVO> personalCenterStudentListVOList = new ArrayList<>(); List<PersonalCenterStudentListVO> personalCenterStudentListVOList = new ArrayList<>();
PersonalCenterStudentListVO personalCenterStudentListVO = null; PersonalCenterStudentListVO personalCenterStudentListVO = null;
for (UmsStudentManage umsStudentManage : umsStudentManageList) { for (UmsStudentManage umsStudentManage : umsStudentManageList) {
if (umsStudentManage != null){
personalCenterStudentListVO = new PersonalCenterStudentListVO(); personalCenterStudentListVO = new PersonalCenterStudentListVO();
personalCenterStudentListVO.setIcon(umsStudentManage.getIcon()); personalCenterStudentListVO.setIcon(umsStudentManage.getIcon());
personalCenterStudentListVO.setName(umsStudentManage.getName()); personalCenterStudentListVO.setName(umsStudentManage.getName());
personalCenterStudentListVO.setNumber(umsStudentManage.getNumber()); personalCenterStudentListVO.setNumber(umsStudentManage.getNumber());
personalCenterStudentListVOList.add(personalCenterStudentListVO); personalCenterStudentListVOList.add(personalCenterStudentListVO);
} }
}
return personalCenterStudentListVOList; return personalCenterStudentListVOList;
} }

@ -53,7 +53,7 @@ public class UmsStudentManageServiceImpl extends ServiceImpl<UmsStudentManageMap
@Override @Override
public Map<String, Object> pageQuery(UmsStudentPageQueryDTO umsStudentPageQueryDTO) { public Map<String, Object> pageQuery(UmsStudentPageQueryDTO umsStudentPageQueryDTO) {
LinkedHashSet<UmsStudentManage> umsStudentManages = coursesService.queryTeacherByStudentList(umsStudentPageQueryDTO.getUserId()); LinkedHashSet<UmsStudentManage> umsStudentManages = coursesService.queryTeacherByStudentList(umsStudentPageQueryDTO.getName());
//总记录数 //总记录数
int totalCount = umsStudentManages.size(); int totalCount = umsStudentManages.size();

Loading…
Cancel
Save