修改注册时,添加判断传递的List.size>0
This commit is contained in:
@@ -168,7 +168,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
|
||||
it.setCompanyId(registerBody.getCompany().getCompanyId());
|
||||
});
|
||||
}
|
||||
if(registerBody.getCompany().getCompanyContactList()!=null){
|
||||
if(registerBody.getCompany().getCompanyContactList()!=null&®isterBody.getCompany().getCompanyContactList().size()>0){
|
||||
companyContactMapper.batchInsert(registerBody.getCompany().getCompanyContactList());
|
||||
}
|
||||
//保存app_user信息
|
||||
@@ -178,13 +178,13 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
|
||||
mapUserRole.put("roleId",StringUtil.SYS_QY);
|
||||
break;
|
||||
default://求职者
|
||||
if(registerBody.getExperiencesList()!=null){
|
||||
if(registerBody.getExperiencesList()!=null&®isterBody.getExperiencesList().size()>0){
|
||||
registerBody.getExperiencesList().forEach(it->{
|
||||
it.setUserId(SiteSecurityUtils.getUserId());
|
||||
});
|
||||
userWorkExperiencesMapper.batchInsert(registerBody.getExperiencesList());
|
||||
}
|
||||
if(registerBody.getAppSkillsList()!=null){
|
||||
if(registerBody.getAppSkillsList()!=null&®isterBody.getAppSkillsList().size()>0){
|
||||
registerBody.getAppSkillsList().forEach(it->{
|
||||
it.setUserId(SiteSecurityUtils.getUserId());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user