|
@@ -1,6 +1,7 @@
|
|
|
package com.slibra.framework.web.service;
|
|
|
|
|
|
import com.slibra.system.mapper.SysPostMapper;
|
|
|
+import com.slibra.system.mapper.SysUserPostMapper;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -60,10 +61,11 @@ public class UserDetailsServiceImpl implements UserDetailsService
|
|
|
throw new ServiceException(MessageUtils.message("user.blocked"));
|
|
|
}
|
|
|
//2024年08月16日10:21:30 额外再处理一下用户的职位信息(前端接口使用)
|
|
|
- Long[] postIds = user.getPostIds();
|
|
|
+ /*Long[] postIds = user.getPostIds();
|
|
|
if (StringUtils.isNotEmpty(postIds)){
|
|
|
user.setPosition(this.sysPostMapper.getPostNamesByIds(postIds));
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ user.setPosition(this.sysPostMapper.getPostNamesByUserId(user.getUserId()));
|
|
|
|
|
|
passwordService.validate(user);
|
|
|
|