This commit is contained in:
杜建超 2020-10-29 11:44:12 +08:00
parent 52db4335fb
commit 7f9e081707
3 changed files with 17 additions and 1 deletions

View File

@ -39,4 +39,5 @@ public interface EvaluationStartStaffService extends IService<EvaluationStartSta
EvaluationStartStaff selectManagerEvaluationStartStaff(Long evaluationId, Long userId);
int existByStartIdAndEvaluationId(Long startId,Long evaluationId);
}

View File

@ -11,7 +11,8 @@ public enum ResultFlowProcessEnum {
DO(2,"执行中"),
WRITE(3,"结果值录入"),
SCORE(4,"评分"),
FINISH(5,"考核结束"),
NODE(5,"审批节点不用跟flowchaet对应"),
FINISH(6,"考核结束"),
;
private int status;

View File

@ -7,6 +7,7 @@ import com.lz.modules.app.dto.StaffSimpleDto;
import com.lz.modules.app.service.StaffService;
import com.lz.modules.flow.dao.FlowStartMapper;
import com.lz.modules.flow.entity.EvaluationGroup;
import com.lz.modules.flow.entity.EvaluationStartStaff;
import com.lz.modules.flow.entity.FlowStart;
import com.lz.modules.flow.service.EvaluationGroupService;
import com.lz.modules.flow.service.EvaluationStartStaffService;
@ -160,11 +161,24 @@ public class AssessManagerServiceImpl implements AssessManagerService {
for(String s:split){
int i = evaluationStartStaffService.existByStartIdAndEvaluationId(req.getStartId(), Long.valueOf(s));
if(i<1){
//发起评分
List<String> strings = evaluationGroupService.selectAllStaffIdsByGroupId(Long.valueOf(s));
evaluationStartStaffService.insertEvaluationStartStaffs();
}
}
}
private List<EvaluationStartStaff> buildList(List<String> staffIds){
List<EvaluationStartStaff> evaluationStartStaffs = new ArrayList<>();
return evaluationStartStaffs;
}
}