|
|
@@ -136,9 +136,9 @@ public class InvestigateServiceImpl extends FlowServiceFactory implements IInves
|
|
|
tProjectInvestigate.setProcInstId(pInst.getProcessInstanceId());
|
|
|
tProjectInvestigate.setCreateBy(userId);
|
|
|
if(tProjectInvestigate.isFlag()){
|
|
|
- //tProjectInvestigate.setStatus(1);//提交
|
|
|
+ tProjectInvestigate.setStatus(1);//提交
|
|
|
}else{
|
|
|
- //tProjectInvestigate.setStatus(0);//暂存
|
|
|
+ tProjectInvestigate.setStatus(0);//暂存
|
|
|
}
|
|
|
// todo 保存尽职背调附件信息
|
|
|
tUnifyFileService.insertTUnifyFileList(tProjectInvestigate.getListFile(),
|
|
|
@@ -218,7 +218,6 @@ public class InvestigateServiceImpl extends FlowServiceFactory implements IInves
|
|
|
List<String> userIds = Arrays.asList(tProjectInvestigate.getInvestigatePersonId().split(","));
|
|
|
formProperties.put("uploadList", userIds);
|
|
|
}
|
|
|
-
|
|
|
Map<String, Object> fpMap = flowService.getFormProperties(task.getProcessDefinitionId(), task.getId());
|
|
|
try {
|
|
|
rs = flowService.taskComplete( task.getId(), tProjectInvestigate.isFlag(), formProperties, userInfo.getUserId().toString());
|
|
|
@@ -292,12 +291,14 @@ public class InvestigateServiceImpl extends FlowServiceFactory implements IInves
|
|
|
// 表示流程已经审批结束了
|
|
|
if (processInstance == null) {
|
|
|
flow.setStatus(FlowStatusEnum.ENDED.getName());
|
|
|
- if (!"modifyApply".equals(task.getTaskDefinitionKey())&&!"president".equals(task.getTaskDefinitionKey())) {
|
|
|
+ if (!"modifyApply".equals(task.getTaskDefinitionKey())) {
|
|
|
tProjectInvestigate.setStatus(3);
|
|
|
tProjectPool.setProjectStage("5");//项目阶段-项目投决
|
|
|
tProjectPool.setProjectState("h");//项目状态-准备项目投决材料
|
|
|
tProjectPool.setUpdateBy(userInfo.getNickName());
|
|
|
//tProjectPool.setInvestigateDate(new Date());//投决通过日期
|
|
|
+ // todo 增加项目创建记录
|
|
|
+ tProjectCirculationService.insertTProjectCirculation(tProjectPool.getId(),"尽职背调完成", userInfo.getNickName());
|
|
|
}else{
|
|
|
tProjectPool.setProjectStage("4");//项目阶段-尽职背调
|
|
|
tProjectPool.setProjectState("f");//项目状态-尽职背调
|