Explorar o código

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

shenhao %!s(int64=3) %!d(string=hai) anos
pai
achega
16647a9b55

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

@@ -360,7 +360,7 @@ public class TbClassTeacherTempServiceImpl extends BaseServiceImpl<TbClassTeache
 					user.setCreateTime(new Date());
 				}
 				if(StringUtil.isBlank(user.getPassword())){
-					if(tbLibImTeacherTemp.getType()==30){
+					if(Objects.isNull(tbLibImTeacherTemp.getType()) || tbLibImTeacherTemp.getType()==30){
 						user.setPassword("123456");
 					}else{
 						user.setPassword("123@abc123");