Explorar el Código

导入批注平台老师,如果用户存在没有密码也设置一个默认密码

shenhao hace 3 años
padre
commit
21887300ef

+ 1 - 1
src/main/java/com/ssj/service/sys/imlibuser/service/impl/TbClassTeacherTempServiceImpl.java

@@ -379,7 +379,7 @@ public class TbClassTeacherTempServiceImpl extends BaseServiceImpl<TbClassTeache
 					tbLibManager=new TbLibManager();
 					tbLibManager.settPhoto(user.getPhoto());
 					tbLibManager.setUserId(user.getId());
-					tbLibManager.setType(tbLibImTeacherTemp.getType());
+					tbLibManager.setType(tbLibImTeacherTemp.getType()==null?Constant.ALL_TEACHER_TYPE:tbLibImTeacherTemp.getType());
 					tbLibManager.setCreateTime(new Date());
 					tbLibManager.setName(tbLibImTeacherTemp.getTeacherName());
 					tbLibManager.setTelephone(tbLibImTeacherTemp.getTeacherPhone());