| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.dromara.common.core.constant.SystemConstants; |
| | | import org.dromara.common.core.exception.ServiceException; |
| | | import org.dromara.common.core.service.PostService; |
| | | import org.dromara.common.core.utils.MapstructUtils; |
| | | import org.dromara.common.core.utils.StreamUtils; |
| | | import org.dromara.common.core.utils.StringUtils; |
| | |
| | | */ |
| | | @RequiredArgsConstructor |
| | | @Service |
| | | public class SysPostServiceImpl implements ISysPostService { |
| | | public class SysPostServiceImpl implements ISysPostService, PostService { |
| | | |
| | | private final SysPostMapper baseMapper; |
| | | private final SysDeptMapper deptMapper; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询用户所属岗位组 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 岗位ID |
| | | */ |
| | | @Override |
| | | public List<SysPostVo> selectPostsByUserId(Long userId) { |
| | | return baseMapper.selectPostsByUserId(userId); |
| | | } |
| | | |
| | | /** |
| | | * 根据查询条件构建查询包装器 |
| | | * |
| | | * @param bo 查询条件对象 |