From d90906cb2e04b223b9eee5790f2abcf747fb909a Mon Sep 17 00:00:00 2001 From: Chengliang <1546584672@qq.com> Date: Thu, 7 Sep 2023 15:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=BC=96=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/staff/param/StaffOutParam.java | 5 ++ .../organization/mapper/staff/StaffMapper.xml | 2 +- .../mapper/staff/StaffPlanMapper.java | 2 +- .../mapper/staff/StaffPlanMapper.xml | 3 +- .../impl/FunctionOutStaffServiceImpl.java | 77 +++++++++++-------- .../service/impl/StaffOutServiceImpl.java | 13 ++++ .../service/impl/StaffPlanServiceImpl.java | 4 +- 7 files changed, 71 insertions(+), 35 deletions(-) diff --git a/src/com/engine/organization/entity/staff/param/StaffOutParam.java b/src/com/engine/organization/entity/staff/param/StaffOutParam.java index 0a4a59a5..17104edc 100644 --- a/src/com/engine/organization/entity/staff/param/StaffOutParam.java +++ b/src/com/engine/organization/entity/staff/param/StaffOutParam.java @@ -29,6 +29,11 @@ public class StaffOutParam { private Integer job; + /** + * 维度 1 分部 2 部门 3 岗位 + */ + private Integer dimension; + /** * 调整方式 1.流程 2.其它 */ diff --git a/src/com/engine/organization/mapper/staff/StaffMapper.xml b/src/com/engine/organization/mapper/staff/StaffMapper.xml index 16c8024a..231efccf 100644 --- a/src/com/engine/organization/mapper/staff/StaffMapper.xml +++ b/src/com/engine/organization/mapper/staff/StaffMapper.xml @@ -389,7 +389,7 @@ where t.delete_type = 0 AND t.ec_department IN - #{departmentIds} + #{departmentId} AND t.plan_id IN (SELECT id from jcl_org_staffplan s where s.control_dimension = 2) diff --git a/src/com/engine/organization/mapper/staff/StaffPlanMapper.java b/src/com/engine/organization/mapper/staff/StaffPlanMapper.java index 8884113d..b61b10ba 100644 --- a/src/com/engine/organization/mapper/staff/StaffPlanMapper.java +++ b/src/com/engine/organization/mapper/staff/StaffPlanMapper.java @@ -82,6 +82,6 @@ public interface StaffPlanMapper { * @param: [timeStart, timeEnd, ecCompany, controlDimension] * @return: com.engine.organization.entity.staff.po.StaffPlanPO */ - StaffPlanPO customSelect(@Param("timeStart") String timeStart,@Param("ecCompany") String ecCompany,@Param("controlDimension") String controlDimension); + StaffPlanPO customSelect(@Param("timeStart") String timeStart,@Param("timeEnd") String timeEnd,@Param("ecCompany") String ecCompany,@Param("controlDimension") String controlDimension); } diff --git a/src/com/engine/organization/mapper/staff/StaffPlanMapper.xml b/src/com/engine/organization/mapper/staff/StaffPlanMapper.xml index fe600553..81b274ad 100644 --- a/src/com/engine/organization/mapper/staff/StaffPlanMapper.xml +++ b/src/com/engine/organization/mapper/staff/StaffPlanMapper.xml @@ -299,7 +299,8 @@