获取考评组信息时返回department_id

This commit is contained in:
wulin 2020-10-22 18:01:44 +08:00
parent a217e45b6f
commit d9516cee01
3 changed files with 17 additions and 10 deletions

View File

@ -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;
/**
* 飞书显示部门人数
*/

View File

@ -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<String> 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<ResultRecord> resultRecords = new ArrayList<>();
List<ResultDetail> resultDetails = new ArrayList<>();
List<EvaluationStartStaff> 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表
}
}

View File

@ -113,7 +113,7 @@
<select id="selectDepartmentSimpleInfos"
resultType="com.lz.modules.app.dto.DepartmentsSimpleDto">
select id, member_count, department_name from lz_departments where is_delete = 0
select department_id as id, member_count, department_name from lz_departments where is_delete = 0
and department_id in
<foreach collection="ids" item="item" index="index" separator="," open="(" close=")">
#{item}