|
@@ -99,6 +99,7 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
|
Company company = new Company();
|
|
|
company.setState(1);
|
|
|
company.setCompanyName(param.getEmail());
|
|
|
+
|
|
|
companyService.save(company);
|
|
|
|
|
|
User userEntity = new User();
|
|
@@ -117,6 +118,9 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
|
userEntity.setUpdateTime(DateUserUtil.getDate(new Date()));
|
|
|
this.save(userEntity);
|
|
|
|
|
|
+ company.setManagerId(userEntity.getId());
|
|
|
+ companyService.saveOrUpdate(company);
|
|
|
+
|
|
|
UserRole userRole = new UserRole();
|
|
|
userRole.setUserId(userEntity.getId());
|
|
|
userRole.setRoleId(6L);
|