From 5ea8ef80312e8c1d3365abe7106622d676def195 Mon Sep 17 00:00:00 2001 From: huangzhen <867127663@qq.com> Date: 星期五, 30 九月 2022 16:41:09 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/DoublePreventionDeptServiceImpl.java | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/DoublePreventionDeptServiceImpl.java b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/DoublePreventionDeptServiceImpl.java new file mode 100644 index 0000000..061d041 --- /dev/null +++ b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/DoublePreventionDeptServiceImpl.java @@ -0,0 +1,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); + } +} -- Gitblit v1.9.2