package com.ruoyi.doublePrevention.service.baseService.impl; import com.ruoyi.doublePrevention.entity.DoublePreventDept; import com.ruoyi.doublePrevention.repository.DoublePreventDeptRepository; import com.ruoyi.doublePrevention.service.baseService.DoublePreventionDeptService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service("DoublePreventionDeptService") public class DoublePreventionDeptServiceImpl implements DoublePreventionDeptService { @Autowired private DoublePreventDeptRepository doublePreventDeptRepository; /** * @description 根据部门id查询部门 */ @Override public DoublePreventDept getDepInfoByDepId(Long depId) { return doublePreventDeptRepository.getDepInfoByDepId(depId); } /** * @description 根据当前部门的祖级列表获取子部门的deptId */ @Override public List listDepAndSubDepIds(String ancestors) { return doublePreventDeptRepository.listDepAndSubDepIds(ancestors); } }