增加指定发起指定人的任务

This commit is contained in:
wulin 2020-10-30 10:47:37 +08:00
parent e5b21bde35
commit 3fec50fe81
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,11 @@
package com.lz.modules.flow.model;
import lombok.Data;
import java.util.List;
//人员ids
@Data
public class GroupStaffs {
private Long groupId;
private List<Long> staffIds;
}

View File

@ -0,0 +1,11 @@
package com.lz.modules.flow.model;
import lombok.Data;
import java.util.List;
//发起组集合对象
@Data
public class StartGroups {
private Long startId;
private List<GroupStaffs> staffIds;
}

View File

@ -13,6 +13,7 @@ import com.lz.modules.flow.entity.*;
import com.lz.modules.flow.model.DepartManagers;
import com.lz.modules.flow.model.ResultModelDto;
import com.lz.modules.flow.model.ResultTagetLibDto;
import com.lz.modules.flow.model.StartGroups;
import com.lz.modules.flow.service.*;
import com.lz.modules.performance.service.ResultTagetLibService;
import com.lz.modules.sys.entity.app.ResultDetail;
@ -123,6 +124,20 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
return flowStartMapper.selectFlowStartByName(name);
}
//发起指定用户的绩效中途添加的时候
public R startStaffs(StartGroups startGroupStaffIds){
FlowStart flowStart = flowStartMapper.selectFlowStartById(startGroupStaffIds.getStartId());
if(flowStart == null){
return R.error("发起任务不存在");
}
/*List<StaffSimpleInfo> staffSimpleInfos = staffService.selectStaffSimpleInfos(staffIds);
if(staffSimpleInfos.size() == 0){
return R.error("无有效考核人员,考核人员已离职");
}*/
return R.ok();
}
@Override
public R saveStart(FlowStart flowStart){
//下面生成或者合并发起绩效