|  | @@ -2,7 +2,6 @@ package com.ym.mec.biz.service.impl;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dao.StudentExtracurricularExercisesSituationDao;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dao.TeacherDao;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.dal.dto.SimpleUserDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dto.StudentExercisesSituationDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.StudentExtracurricularExercisesSituation;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.StudentExercisesSituationQueryInfo;
 | 
	
	
		
			
				|  | @@ -13,10 +12,11 @@ import com.ym.mec.common.service.impl.BaseServiceImpl;
 | 
	
		
			
				|  |  |  import com.ym.mec.util.collection.MapUtil;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  | -import org.springframework.util.CollectionUtils;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import java.util.*;
 | 
	
		
			
				|  |  | -import java.util.stream.Collectors;
 | 
	
		
			
				|  |  | +import java.util.ArrayList;
 | 
	
		
			
				|  |  | +import java.util.HashMap;
 | 
	
		
			
				|  |  | +import java.util.List;
 | 
	
		
			
				|  |  | +import java.util.Map;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @Service
 | 
	
		
			
				|  |  |  public class StudentExtracurricularExercisesSituationServiceImpl extends BaseServiceImpl<Long, StudentExtracurricularExercisesSituation> implements StudentExtracurricularExercisesSituationService {
 | 
	
	
		
			
				|  | @@ -43,14 +43,6 @@ public class StudentExtracurricularExercisesSituationServiceImpl extends BaseSer
 | 
	
		
			
				|  |  |  			pageInfo.setTotal(count);
 | 
	
		
			
				|  |  |  			params.put("offset", pageInfo.getOffset());
 | 
	
		
			
				|  |  |  			dataList = studentExtracurricularExercisesSituationDao.findExercisesSituations(params);
 | 
	
		
			
				|  |  | -			List<Integer> teacherIds = dataList.stream().filter(t-> Objects.nonNull(t.getTeacherId())).map(StudentExercisesSituationDto::getTeacherId).collect(Collectors.toList());
 | 
	
		
			
				|  |  | -			if(!CollectionUtils.isEmpty(teacherIds)){
 | 
	
		
			
				|  |  | -				List<SimpleUserDto> teachers = teacherDao.findSimpleTeachers(teacherIds);
 | 
	
		
			
				|  |  | -				Map<Integer, String> idNameMap = teachers.stream().collect(Collectors.toMap(SimpleUserDto::getUserId, SimpleUserDto::getUserName));
 | 
	
		
			
				|  |  | -				for (StudentExercisesSituationDto exercisesSituationDto : dataList) {
 | 
	
		
			
				|  |  | -					exercisesSituationDto.setTeacherName(idNameMap.get(exercisesSituationDto.getTeacherId()));
 | 
	
		
			
				|  |  | -				}
 | 
	
		
			
				|  |  | -			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  		if (count == 0) {
 | 
	
		
			
				|  |  |  			dataList = new ArrayList<>();
 |