|  | @@ -51,6 +51,7 @@ import org.springframework.transaction.annotation.Transactional;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import java.math.BigDecimal;
 | 
	
		
			
				|  |  |  import java.math.RoundingMode;
 | 
	
		
			
				|  |  | +import java.text.MessageFormat;
 | 
	
		
			
				|  |  |  import java.text.SimpleDateFormat;
 | 
	
		
			
				|  |  |  import java.time.Instant;
 | 
	
		
			
				|  |  |  import java.time.LocalDate;
 | 
	
	
		
			
				|  | @@ -769,7 +770,19 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
 | 
	
		
			
				|  |  |       * @Date: 2022/4/13
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      public IPage<MyCourseVo> queryStudentPracticeCourse(IPage<MyCourseVo> page, MyCourseSearch search) {
 | 
	
		
			
				|  |  | -        return page.setRecords(baseMapper.queryStudentPracticeCourse(page, monthToDate(search)));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        List<MyCourseVo> records = baseMapper.queryStudentPracticeCourse(page, monthToDate(search));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        // 陪练课老师IM聊天ID
 | 
	
		
			
				|  |  | +        if (CollectionUtils.isNotEmpty(records)) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            for (MyCourseVo item : records) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                item.setImUserId(String.valueOf(item.getUserId()));
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        return page.setRecords(records);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
	
		
			
				|  | @@ -813,6 +826,14 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
 | 
	
		
			
				|  |  |      public Map<String, Object> queryCourseUser(MyCourseSearch search) {
 | 
	
		
			
				|  |  |          List<CourseStudent> studentList = baseMapper.queryCourseUser(search);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        if (CollectionUtils.isNotEmpty(studentList)) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            for (CourseStudent item : studentList) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                item.setImUserId(MessageFormat.format("{0}:{1}", item.getUserId(), ClientEnum.STUDENT.name()));
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          Map<String, String> sysConfig = new HashMap<>();
 | 
	
		
			
				|  |  |          //提前XX分钟创建/进入陪练课房间时间
 | 
	
		
			
				|  |  |          sysConfig.put("practiceStartTime", sysConfigService.findConfigValue(SysConfigConstant.PRE_CREATE_PRACTICE_ROOM_MINUTE));
 | 
	
	
		
			
				|  | @@ -860,6 +881,16 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      public Map<String, Object> queryCourseTeacher(MyCourseSearch search) {
 | 
	
		
			
				|  |  |          List<CourseStudent> teacherList = baseMapper.queryCourseTeacher(search);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        // 设置IM聊天用户ID
 | 
	
		
			
				|  |  | +        if (CollectionUtils.isNotEmpty(teacherList)) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            for (CourseStudent item : teacherList) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                item.setImUserId(item.getUserId());
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          Map<String, String> sysConfig = new HashMap<>();
 | 
	
		
			
				|  |  |          //提前XX分钟创建/进入陪练课房间时间
 | 
	
		
			
				|  |  |          sysConfig.put("practiceStartTime", sysConfigService.findConfigValue(SysConfigConstant.PRE_CREATE_PRACTICE_ROOM_MINUTE));
 |