From 95768937cb8ddacd3ebf4346703bdfa5dae3dd2f Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Mon, 31 Oct 2022 20:37:20 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=907.3.2=E3=80=91=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=9F=A5=E8=AF=A2=E8=81=8C=E4=BD=8D=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../roses/kernel/system/api/PositionServiceApi.java | 11 +++++++++++ .../service/impl/HrPositionServiceImpl.java | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/PositionServiceApi.java b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/PositionServiceApi.java index 87353ee60..5093f122e 100644 --- a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/PositionServiceApi.java +++ b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/PositionServiceApi.java @@ -2,6 +2,8 @@ package cn.stylefeng.roses.kernel.system.api; import cn.stylefeng.roses.kernel.system.api.pojo.organization.HrPositionDTO; +import java.util.List; + /** * 职位api * @@ -25,4 +27,13 @@ public interface PositionServiceApi { * @date 2022/3/8 23:33 */ HrPositionDTO getPositionDetail(Long positionId); + + /** + * 获取职位详情列表 + * + * @author fengshuonan + * @date 2022/10/31 20:33 + */ + List getPositionDetailList(List positionIdList); + } diff --git a/kernel-s-system/system-business-organization/src/main/java/cn/stylefeng/roses/kernel/system/modular/organization/service/impl/HrPositionServiceImpl.java b/kernel-s-system/system-business-organization/src/main/java/cn/stylefeng/roses/kernel/system/modular/organization/service/impl/HrPositionServiceImpl.java index 65f66b642..23b055cb9 100644 --- a/kernel-s-system/system-business-organization/src/main/java/cn/stylefeng/roses/kernel/system/modular/organization/service/impl/HrPositionServiceImpl.java +++ b/kernel-s-system/system-business-organization/src/main/java/cn/stylefeng/roses/kernel/system/modular/organization/service/impl/HrPositionServiceImpl.java @@ -48,6 +48,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.util.ArrayList; import java.util.List; /** @@ -147,6 +148,16 @@ public class HrPositionServiceImpl extends ServiceImpl getPositionDetailList(List positionIdList) { + ArrayList hrPositionDTOS = new ArrayList<>(); + for (Long positionId : positionIdList) { + HrPositionDTO positionDetail = this.getPositionDetail(positionId); + hrPositionDTOS.add(positionDetail); + } + return hrPositionDTOS; + } + /** * 根据主键id获取对象信息 *