|
@ -164,6 +164,7 @@ public class HuzhouPlaninfofileServiceImpl extends ServiceImpl<HuzhouPlaninfofil |
|
|
queryWrapper.eq(HuzhouPlaninfo::getProjectId,planinfo.getProjectId()); |
|
|
queryWrapper.eq(HuzhouPlaninfo::getProjectId,planinfo.getProjectId()); |
|
|
queryWrapper.eq(HuzhouPlaninfo::getTaskName,"试运行阶段"); |
|
|
queryWrapper.eq(HuzhouPlaninfo::getTaskName,"试运行阶段"); |
|
|
HuzhouPlaninfo source = planinfoMapper.selectOne(queryWrapper); |
|
|
HuzhouPlaninfo source = planinfoMapper.selectOne(queryWrapper); |
|
|
|
|
|
|
|
|
if (source != null && huzhouProjectinfo.getAdminDivision().equals("市本级") ) { |
|
|
if (source != null && huzhouProjectinfo.getAdminDivision().equals("市本级") ) { |
|
|
HuzhouPlaninfo target = new HuzhouPlaninfo(); |
|
|
HuzhouPlaninfo target = new HuzhouPlaninfo(); |
|
|
BeanUtils.copyProperties(source,target,"id","actualStartTime","actualEndTime"); |
|
|
BeanUtils.copyProperties(source,target,"id","actualStartTime","actualEndTime"); |
|
@ -177,6 +178,16 @@ public class HuzhouPlaninfofileServiceImpl extends ServiceImpl<HuzhouPlaninfofil |
|
|
target.setScheduledStartTime(setDate); |
|
|
target.setScheduledStartTime(setDate); |
|
|
target.setScheduledEndTime(setDate); |
|
|
target.setScheduledEndTime(setDate); |
|
|
planinfoMapper.insert(target); |
|
|
planinfoMapper.insert(target); |
|
|
|
|
|
|
|
|
|
|
|
// 添加计划
|
|
|
|
|
|
HuzhouPlaninfo target2 = new HuzhouPlaninfo(); |
|
|
|
|
|
BeanUtils.copyProperties(source,target2,"id","actualStartTime","actualEndTime"); |
|
|
|
|
|
target2.setTaskName("联合验收审批"); |
|
|
|
|
|
target2.setTaskFile("《验收文件》"); |
|
|
|
|
|
target2.setIsfinish("0"); |
|
|
|
|
|
target2.setScheduledStartTime(setDate); |
|
|
|
|
|
target2.setScheduledEndTime(setDate); |
|
|
|
|
|
planinfoMapper.insert(target2); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -387,7 +398,25 @@ public class HuzhouPlaninfofileServiceImpl extends ServiceImpl<HuzhouPlaninfofil |
|
|
huzhouPlaninfo.setIsfinish("1"); |
|
|
huzhouPlaninfo.setIsfinish("1"); |
|
|
huzhouPlaninfo.setActualStartTime(new Date()); |
|
|
huzhouPlaninfo.setActualStartTime(new Date()); |
|
|
planinfoService.updateById(huzhouPlaninfo); |
|
|
planinfoService.updateById(huzhouPlaninfo); |
|
|
}else{ |
|
|
} else if ("联合验收审批".equals(taskName)) { |
|
|
|
|
|
WorkFlow workFlow = workflowService.createFlow("JAA", planinfoid); |
|
|
|
|
|
Task task = workFlow.getTask(); |
|
|
|
|
|
String taskId = task.getId(); |
|
|
|
|
|
String processInstanceId = workFlow.getProcessInstanceId(); |
|
|
|
|
|
Map<String, Object> variables = new HashMap<>(); |
|
|
|
|
|
variables.put("taskLeadingDepartment", strings); |
|
|
|
|
|
runtimeService.setVariable(processInstanceId, "taskLeadingDepartment", strings);//设置第四个人变量信息
|
|
|
|
|
|
//发起人节点处理
|
|
|
|
|
|
taskService.setVariableLocal(taskId, "approvalStatue", "1");//添加审批状态 通过
|
|
|
|
|
|
String comment = "同意"; |
|
|
|
|
|
taskService.addComment(taskId, processInstanceId, comment);//添加审批意见
|
|
|
|
|
|
taskService.complete(taskId, variables); |
|
|
|
|
|
HuzhouPlaninfo huzhouPlaninfo = new HuzhouPlaninfo(); |
|
|
|
|
|
huzhouPlaninfo.setId(planinfoid); |
|
|
|
|
|
huzhouPlaninfo.setIsfinish("1"); |
|
|
|
|
|
huzhouPlaninfo.setActualStartTime(new Date()); |
|
|
|
|
|
planinfoService.updateById(huzhouPlaninfo); |
|
|
|
|
|
} else { |
|
|
HuzhouPlaninfo huzhouPlaninfo = new HuzhouPlaninfo(); |
|
|
HuzhouPlaninfo huzhouPlaninfo = new HuzhouPlaninfo(); |
|
|
huzhouPlaninfo.setId(planinfoid); |
|
|
huzhouPlaninfo.setId(planinfoid); |
|
|
huzhouPlaninfo.setIsfinish("2"); |
|
|
huzhouPlaninfo.setIsfinish("2"); |
|
|