|
|
|
@ -42,8 +42,6 @@ import java.util.ArrayList; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.UUID; |
|
|
|
|
|
|
|
|
|
import static com.teaching.backend.constant.RoleConstants.TEACHER_ROLE; |
|
|
|
|
|
|
|
|
|
@Service |
|
|
|
|
@Slf4j |
|
|
|
|
public class UmsUserServiceImpl extends ServiceImpl<UmsUserMapper, UmsUser> implements UmsUserService { |
|
|
|
@ -90,7 +88,7 @@ public class UmsUserServiceImpl extends ServiceImpl<UmsUserMapper, UmsUser> impl |
|
|
|
|
UmsUser byUsername = lambdaQuery().eq(UmsUser::getUsername, umsUser.getUsername()) |
|
|
|
|
.one(); |
|
|
|
|
UmsStudent umsStudent = new UmsStudent(); |
|
|
|
|
umsStudent.setUserId(Math.toIntExact(byUsername.getId())); |
|
|
|
|
umsStudent.setUserId(byUsername.getId()); |
|
|
|
|
umsStudentMapper.insert(umsStudent); |
|
|
|
|
|
|
|
|
|
return umsUser; |
|
|
|
@ -311,7 +309,7 @@ public class UmsUserServiceImpl extends ServiceImpl<UmsUserMapper, UmsUser> impl |
|
|
|
|
UmsUser byUsername = lambdaQuery().eq(UmsUser::getPhone, umsUser.getPhone()) |
|
|
|
|
.one(); |
|
|
|
|
UmsStudent umsStudent = new UmsStudent(); |
|
|
|
|
umsStudent.setUserId(Math.toIntExact(byUsername.getId())); |
|
|
|
|
umsStudent.setUserId(byUsername.getId()); |
|
|
|
|
umsStudentMapper.insert(umsStudent); |
|
|
|
|
|
|
|
|
|
return umsUser; |
|
|
|
|