package com.xingxi.mq.server.system.service.impl;

import com.xingxi.mq.server.system.mapper.SysDeptVoMapper;
import com.xingxi.mq.server.system.service.ISysDeptVoService;
import com.xingxi.common.core.domain.entity.SysDept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 部门Service业务层处理
 *
 * @author xingxi
 * @date 2025-02-11
 */
@Service
public class SysDeptVoServiceImpl implements ISysDeptVoService {
    @Autowired
    private SysDeptVoMapper sysDeptVoMapper;

    /**
     * 查询部门
     *
     * @param deptId 部门主键
     * @return 部门Vo
     */
    @Override
    public SysDept selectParentDeptByDeptId(Long deptId) {
        return sysDeptVoMapper.selectParentDeptByDeptId(deptId);
    }
}
