增加指定发起指定人的任务
This commit is contained in:
parent
e5b21bde35
commit
3fec50fe81
11
src/main/java/com/lz/modules/flow/model/GroupStaffs.java
Normal file
11
src/main/java/com/lz/modules/flow/model/GroupStaffs.java
Normal 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;
|
||||
}
|
||||
11
src/main/java/com/lz/modules/flow/model/StartGroups.java
Normal file
11
src/main/java/com/lz/modules/flow/model/StartGroups.java
Normal 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;
|
||||
}
|
||||
@ -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){
|
||||
//下面生成或者合并发起绩效
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user