|
@@ -12,6 +12,7 @@ import com.ssj.dao.sys.imlibuser.dao.TbClassTeacherTempDao;
|
|
import com.ssj.framework.core.common.service.BaseServiceImpl;
|
|
import com.ssj.framework.core.common.service.BaseServiceImpl;
|
|
import com.ssj.framework.core.util.Constant;
|
|
import com.ssj.framework.core.util.Constant;
|
|
import com.ssj.framework.core.util.PasswordUtil;
|
|
import com.ssj.framework.core.util.PasswordUtil;
|
|
|
|
+import com.ssj.framework.core.util.StringUtil;
|
|
import com.ssj.framework.idworker.IdWorker;
|
|
import com.ssj.framework.idworker.IdWorker;
|
|
import com.ssj.service.sys.imlibuser.service.TbClassService;
|
|
import com.ssj.service.sys.imlibuser.service.TbClassService;
|
|
import com.ssj.service.sys.imlibuser.service.TbClassStudentService;
|
|
import com.ssj.service.sys.imlibuser.service.TbClassStudentService;
|
|
@@ -357,6 +358,8 @@ public class TbClassTeacherTempServiceImpl extends BaseServiceImpl<TbClassTeache
|
|
user.setUserName(tbLibImTeacherTemp.getTeacherName());
|
|
user.setUserName(tbLibImTeacherTemp.getTeacherName());
|
|
user.setMobile(tbLibImTeacherTemp.getTeacherPhone());
|
|
user.setMobile(tbLibImTeacherTemp.getTeacherPhone());
|
|
user.setCreateTime(new Date());
|
|
user.setCreateTime(new Date());
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isBlank(user.getPassword())){
|
|
if(tbLibImTeacherTemp.getType()==30){
|
|
if(tbLibImTeacherTemp.getType()==30){
|
|
user.setPassword("123456");
|
|
user.setPassword("123456");
|
|
}else{
|
|
}else{
|
|
@@ -368,6 +371,8 @@ public class TbClassTeacherTempServiceImpl extends BaseServiceImpl<TbClassTeache
|
|
user=userService.save(user);
|
|
user=userService.save(user);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
//如果之前有这个老师的,就统一使用用旧老师的名称,如果没有就使用新的名称。
|
|
//如果之前有这个老师的,就统一使用用旧老师的名称,如果没有就使用新的名称。
|
|
TbLibManager tbLibManager=managerService.findByUserId(user.getId());
|
|
TbLibManager tbLibManager=managerService.findByUserId(user.getId());
|
|
if(tbLibManager==null){
|
|
if(tbLibManager==null){
|