双重预防项目-国泰新华二开定制版
heheng
2025-06-19 46c37398a52d1dcf81788960ec90faa91249e77f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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<Long> listDepAndSubDepIds(String ancestors) {
        return doublePreventDeptRepository.listDepAndSubDepIds(ancestors);
    }
}