From d9516cee011ee0a24dbd18d48ed634fd703d6c22 Mon Sep 17 00:00:00 2001 From: wulin Date: Thu, 22 Oct 2020 18:01:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=80=83=E8=AF=84?= =?UTF-8?q?=E7=BB=84=E4=BF=A1=E6=81=AF=E6=97=B6=E8=BF=94=E5=9B=9Edepartmen?= =?UTF-8?q?t=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/app/dto/DepartmentsSimpleDto.java | 2 +- .../controller/FlowStartController.java | 23 ++++++++++++------- .../mapper/flow/StaffRoleDepartmentMapper.xml | 2 +- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/lz/modules/app/dto/DepartmentsSimpleDto.java b/src/main/java/com/lz/modules/app/dto/DepartmentsSimpleDto.java index 583438e5..ca9ccf74 100644 --- a/src/main/java/com/lz/modules/app/dto/DepartmentsSimpleDto.java +++ b/src/main/java/com/lz/modules/app/dto/DepartmentsSimpleDto.java @@ -21,7 +21,7 @@ public class DepartmentsSimpleDto implements Serializable{ private static final long serialVersionUID = 1L; @ApiModelProperty(value = "部门id", name = "id") - private Integer id; + private String id; /** * 飞书显示部门人数 */ diff --git a/src/main/java/com/lz/modules/performance/controller/FlowStartController.java b/src/main/java/com/lz/modules/performance/controller/FlowStartController.java index d92fc494..63d1a382 100644 --- a/src/main/java/com/lz/modules/performance/controller/FlowStartController.java +++ b/src/main/java/com/lz/modules/performance/controller/FlowStartController.java @@ -9,6 +9,8 @@ import com.lz.common.utils.R; import com.lz.common.utils.StringUtil; import com.lz.modules.flow.entity.*; import com.lz.modules.flow.service.*; +import com.lz.modules.sys.entity.app.ResultDetail; +import com.lz.modules.sys.entity.app.ResultRecord; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; @@ -90,6 +92,7 @@ public class FlowStartController { ) { //下面初始化员工考核流程 List staffIds = evaluationGroupService.selectAllStaffIdsByGroupId(evaluationGroup.getId()); + if(staffIds.size() == 0){ return R.error(evaluationGroup.getName() + "——无有效考核人员"); } @@ -104,6 +107,9 @@ public class FlowStartController { return R.error(evaluationGroup.getName() + "——没有设置考核流程"); } + List resultRecords = new ArrayList<>(); + List resultDetails = new ArrayList<>(); + List evaluationStartStaffs = new ArrayList<>(); //下面初始化参与人员 for (String staffId:staffIds @@ -115,6 +121,14 @@ public class FlowStartController { evaluationStartStaff.setType(CheckStaffType.STAFF.getCode()); evaluationStartStaffs.add(evaluationStartStaff); + + for (ResultModel resultModel:resultModels + ) { + ResultRecord resultRecord = new ResultRecord(); + + } + + } if(evaluationStartStaffs.size() == 0){ @@ -188,16 +202,9 @@ public class FlowStartController { if(flowApprovalRoles.size() > 0){ flowApprovalRoleService.insertFlowApprovalRoles(flowApprovalRoles); } - - for (EvaluationStartStaff startStaff:evaluationStartStaffs - ) { - if(startStaff.getType().intValue() == CheckStaffType.STAFF.getCode()){ - //初始化人员及流程表id - } + //下面初始化lz_result_record表和lz_result_detail表 - - } } diff --git a/src/main/resources/mapper/flow/StaffRoleDepartmentMapper.xml b/src/main/resources/mapper/flow/StaffRoleDepartmentMapper.xml index 88d725d8..b438fa15 100644 --- a/src/main/resources/mapper/flow/StaffRoleDepartmentMapper.xml +++ b/src/main/resources/mapper/flow/StaffRoleDepartmentMapper.xml @@ -113,7 +113,7 @@