This commit is contained in:
chenyanchang
2026-06-16 13:40:24 +08:00
parent 8555bc47a3
commit 666fde6ece

View File

@@ -58,7 +58,10 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
public AppUser selectAppUserByUserId(Long userId)
{
AppUser appUser = appUserMapper.selectById(userId);
if(appUser != null && StringUtils.isNotEmpty(appUser.getJobTitleId())){
if (appUser == null) {
return null;
}
if(StringUtils.isNotEmpty(appUser.getJobTitleId())){
List<String> list = Arrays.asList(appUser.getJobTitleId().split(","));
List<Long> collect = list.stream().map(Long::valueOf).collect(Collectors.toList());
List<JobTitle> jobs = jobTitleMapper.selectBatchIds(collect);