|  | @@ -28,6 +28,7 @@ import com.yonge.cooleshow.common.enums.UserGenderEnum;
 | 
											
												
													
														|  |  import com.yonge.cooleshow.common.exception.BizException;
 |  |  import com.yonge.cooleshow.common.exception.BizException;
 | 
											
												
													
														|  |  import com.yonge.toolset.utils.idcard.IdcardInfoExtractor;
 |  |  import com.yonge.toolset.utils.idcard.IdcardInfoExtractor;
 | 
											
												
													
														|  |  import com.yonge.toolset.utils.string.StringUtil;
 |  |  import com.yonge.toolset.utils.string.StringUtil;
 | 
											
												
													
														|  | 
 |  | +import org.apache.commons.beanutils.BeanUtils;
 | 
											
												
													
														|  |  import org.apache.poi.ss.formula.functions.T;
 |  |  import org.apache.poi.ss.formula.functions.T;
 | 
											
												
													
														|  |  import org.redisson.api.RedissonClient;
 |  |  import org.redisson.api.RedissonClient;
 | 
											
												
													
														|  |  import org.springframework.beans.factory.annotation.Autowired;
 |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
											
										
											
												
													
														|  | @@ -37,6 +38,7 @@ import com.yonge.cooleshow.biz.dal.dao.TeacherDao;
 | 
											
												
													
														|  |  import org.springframework.transaction.annotation.Transactional;
 |  |  import org.springframework.transaction.annotation.Transactional;
 | 
											
												
													
														|  |  import org.springframework.util.CollectionUtils;
 |  |  import org.springframework.util.CollectionUtils;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +import java.lang.reflect.InvocationTargetException;
 | 
											
												
													
														|  |  import java.util.*;
 |  |  import java.util.*;
 | 
											
												
													
														|  |  import java.util.stream.Collectors;
 |  |  import java.util.stream.Collectors;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -70,7 +72,9 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme
 | 
											
												
													
														|  |          List<TeacherStyleVideo> teacherStyleVideos = teacherStyleVideoService.selectListByUserId(userId);
 |  |          List<TeacherStyleVideo> teacherStyleVideos = teacherStyleVideoService.selectListByUserId(userId);
 | 
											
												
													
														|  |          detail.setStyleVideo(teacherStyleVideos);
 |  |          detail.setStyleVideo(teacherStyleVideos);
 | 
											
												
													
														|  |          TeacherAuthEntryRecordVo lastRecordByUserId = entryRecordService.getLastRecordByUserId(userId);
 |  |          TeacherAuthEntryRecordVo lastRecordByUserId = entryRecordService.getLastRecordByUserId(userId);
 | 
											
												
													
														|  | -        detail.setVerifyUser(lastRecordByUserId.getVerifyUser());
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if(null != lastRecordByUserId){
 | 
											
												
													
														|  | 
 |  | +            detail.setVerifyUser(lastRecordByUserId.getVerifyUser());
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          return detail;
 |  |          return detail;
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -98,16 +102,16 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme
 | 
											
												
													
														|  |              return HttpResponseResult.failed("未查询到老师信息");
 |  |              return HttpResponseResult.failed("未查询到老师信息");
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          TeacherHomeVo teacherHomeVo = new TeacherHomeVo();
 |  |          TeacherHomeVo teacherHomeVo = new TeacherHomeVo();
 | 
											
												
													
														|  | -        teacherHomeVo.setUserId(user.getId());
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +        try {
 | 
											
												
													
														|  | 
 |  | +            BeanUtils.copyProperties(teacherHomeVo,teacher);
 | 
											
												
													
														|  | 
 |  | +        } catch (Exception e) {
 | 
											
												
													
														|  | 
 |  | +            e.printStackTrace();
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          String avatar = user.getAvatar();
 |  |          String avatar = user.getAvatar();
 | 
											
												
													
														|  |          if (StringUtil.isEmpty(avatar)) {
 |  |          if (StringUtil.isEmpty(avatar)) {
 | 
											
												
													
														|  |              avatar = sysConfigService.findConfigValue(SysConfigConstant.DEFAULT_HEARD_TEACHER);
 |  |              avatar = sysConfigService.findConfigValue(SysConfigConstant.DEFAULT_HEARD_TEACHER);
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          teacherHomeVo.setHeardUrl(avatar);
 |  |          teacherHomeVo.setHeardUrl(avatar);
 | 
											
												
													
														|  | -        teacherHomeVo.setUsername(user.getUsername());
 |  | 
 | 
											
												
													
														|  | -        teacherHomeVo.setLiveFlag(teacher.getLiveFlag());
 |  | 
 | 
											
												
													
														|  | -        teacherHomeVo.setSubjectId(teacher.getSubjectId());
 |  | 
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          TeacherAuthEntryRecord entryRecord = entryRecordService.getLastRecordByUserId(user.getId());
 |  |          TeacherAuthEntryRecord entryRecord = entryRecordService.getLastRecordByUserId(user.getId());
 | 
											
												
													
														|  |          if (null == entryRecord) {
 |  |          if (null == entryRecord) {
 |