|
@@ -170,6 +170,8 @@ public class ConstructionController extends BaseController {
|
|
*/
|
|
*/
|
|
|
|
|
|
if (StringUtils.isBlank(construction.getId())) {
|
|
if (StringUtils.isBlank(construction.getId())) {
|
|
|
|
+ //获取流程图id
|
|
|
|
+ String procDefId = construction.getAct().getProcDefId();
|
|
//用于记录未发起的流程原因
|
|
//用于记录未发起的流程原因
|
|
String info = "";
|
|
String info = "";
|
|
//用户修改发起流程后的项目状态
|
|
//用户修改发起流程后的项目状态
|
|
@@ -209,13 +211,14 @@ public class ConstructionController extends BaseController {
|
|
construction.setApplyName(constructionUnitRole);
|
|
construction.setApplyName(constructionUnitRole);
|
|
construction.setProjectId(id);
|
|
construction.setProjectId(id);
|
|
construction.setProjectName(each.getRequireName());
|
|
construction.setProjectName(each.getRequireName());
|
|
|
|
+ construction.setAcceptDate(new Date());
|
|
constructionService.newSave(construction);//保存
|
|
constructionService.newSave(construction);//保存
|
|
newProject.setStatus("1");
|
|
newProject.setStatus("1");
|
|
- newProject.setProjectId(id);
|
|
|
|
|
|
+ newProject.setId(id);
|
|
projectService.updateStatus(newProject);
|
|
projectService.updateStatus(newProject);
|
|
String procDefKey = construction.getAct().getProcDefKey();
|
|
String procDefKey = construction.getAct().getProcDefKey();
|
|
// 启动流程
|
|
// 启动流程
|
|
- ProcessDefinition p = actProcessService.getProcessDefinition(construction.getAct().getProcDefId());
|
|
|
|
|
|
+ ProcessDefinition p = actProcessService.getProcessDefinition(procDefId);
|
|
String title = construction.getCurrentUser().getName() + "在" + DateUtils.getDateTime() + "发起" + p.getName();
|
|
String title = construction.getCurrentUser().getName() + "在" + DateUtils.getDateTime() + "发起" + p.getName();
|
|
actTaskService.startProcessNew(p.getKey(), "xm_construction_clarificaiton", construction.getId(), title, vars);
|
|
actTaskService.startProcessNew(p.getKey(), "xm_construction_clarificaiton", construction.getId(), title, vars);
|
|
} else {
|
|
} else {
|
|
@@ -239,9 +242,10 @@ public class ConstructionController extends BaseController {
|
|
construction.setApplyName(projectManageRole);
|
|
construction.setApplyName(projectManageRole);
|
|
construction.setProjectId(id);
|
|
construction.setProjectId(id);
|
|
construction.setProjectName(each.getRequireName());
|
|
construction.setProjectName(each.getRequireName());
|
|
|
|
+ construction.setAcceptDate(new Date());
|
|
constructionService.newSave(construction);//保存
|
|
constructionService.newSave(construction);//保存
|
|
newProject.setStatus("1");
|
|
newProject.setStatus("1");
|
|
- newProject.setProjectId(id);
|
|
|
|
|
|
+ newProject.setId(id);
|
|
projectService.updateStatus(newProject);
|
|
projectService.updateStatus(newProject);
|
|
String procDefKey = construction.getAct().getProcDefKey();
|
|
String procDefKey = construction.getAct().getProcDefKey();
|
|
// 启动流程
|
|
// 启动流程
|