修改注册时,求职者对应后端的角色

This commit is contained in:
sh
2025-10-27 11:59:10 +08:00
parent a0fd4eb43a
commit 05e215abb0
3 changed files with 13 additions and 4 deletions

View File

@@ -158,7 +158,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
//角色集合
Map mapUserRole=new HashMap<>();
switch (appUser.getIsCompanyUser()){
case "0"://企业
case StringUtil.IS_COMPANY_USER://企业
if(registerBody.getCompany()!=null){
Company company=registerBody.getCompany();
Long companyId=company.getCompanyId();
@@ -175,7 +175,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
appUser.setIdCard(company.getCode());
appUser.setName(company.getName());
}
mapUserRole.put("roleId",100);
mapUserRole.put("roleId",StringUtil.SYS_QY);
break;
default://求职者
if(registerBody.getExperiencesList()!=null){
@@ -190,7 +190,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
});
appSkillMapper.batchInsert(registerBody.getAppSkillsList());
}
mapUserRole.put("roleId",1);
mapUserRole.put("roleId",StringUtil.SYS_QZZ);
}
//保存sys_user
SysUser sysUser=new SysUser();