|
@@ -70,6 +70,8 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
|
ICameraSpaceService cameraSpaceService;
|
|
|
@Autowired
|
|
|
ICompanyService companyService;
|
|
|
+ @Autowired
|
|
|
+ IUserRoleService userRoleService;
|
|
|
|
|
|
private User getByEmail(String email){
|
|
|
QueryWrapper<User> queryWrapper = new QueryWrapper<>();
|
|
@@ -114,6 +116,11 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
|
userEntity.setCreateTime(DateUserUtil.getDate(new Date()));
|
|
|
userEntity.setUpdateTime(DateUserUtil.getDate(new Date()));
|
|
|
this.save(userEntity);
|
|
|
+
|
|
|
+ UserRole userRole = new UserRole();
|
|
|
+ userRole.setUserId(userEntity.getId());
|
|
|
+ userRole.setRoleId(6L);
|
|
|
+ userRoleService.save(userRole);
|
|
|
}
|
|
|
|
|
|
@Override
|