|
|
@@ -10,6 +10,8 @@ import com.google.common.collect.Maps;
|
|
|
import com.ruoyi.common.enums.UserRegStatus;
|
|
|
import com.ruoyi.common.utils.NumberUtils;
|
|
|
import com.ruoyi.enums.UserTypeEnum;
|
|
|
+import com.ruoyi.learn.domain.LearnStudent;
|
|
|
+import com.ruoyi.learn.mapper.LearnStudentMapper;
|
|
|
import com.ruoyi.system.service.ISysRoleService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
@@ -75,6 +77,9 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
@Autowired
|
|
|
private ISysRoleService roleService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private LearnStudentMapper learnStudentMapper;
|
|
|
+
|
|
|
/**
|
|
|
* 根据条件分页查询用户列表
|
|
|
*
|
|
|
@@ -655,6 +660,11 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
user.setPassword(SecurityUtils.encryptPassword(pwd));
|
|
|
user.setRoleIds(new Long[] {roleService.selectRoleByRoleKey(StringUtils.isBlank(role) ? userType.name() : role).getRoleId()});
|
|
|
insertUser(user);
|
|
|
+
|
|
|
+ LearnStudent upStudent = new LearnStudent();
|
|
|
+ upStudent.setStudentId(user.getUserId());
|
|
|
+ upStudent.setClassId(user.getClassId());
|
|
|
+ learnStudentMapper.insertLearnStudent(upStudent);
|
|
|
return user.getUserId();
|
|
|
}
|
|
|
|