|
|
@@ -142,9 +142,9 @@ public class DefaultDeclaredProjectManage { |
|
|
|
} |
|
|
|
|
|
|
|
//直接提交预审方法 提取 在省级联审通过的时候 也可以用 |
|
|
|
public String directStartProcess(Project projectInfo){ |
|
|
|
UserInfoDetails userInfoDetails = LoginUserUtil.loginUserDetail(); |
|
|
|
Long userId = userInfoDetails.getUserId(); |
|
|
|
public String directStartProcess(Project projectInfo,Long userId){ |
|
|
|
VUtils.isTrue(Objects.isNull(userId)) |
|
|
|
.throwMessage("发起人Id 不能为空!"); |
|
|
|
|
|
|
|
ProcessStartParamsVo params = new ProcessStartParamsVo(); |
|
|
|
params.setUser(buildUser(userId)); |
|
|
@@ -173,7 +173,7 @@ public class DefaultDeclaredProjectManage { |
|
|
|
log.info("提交预审项目成功 【{}】", instanceId); |
|
|
|
|
|
|
|
//保存预审项目 |
|
|
|
modifyProject(projectInfo, instanceId); |
|
|
|
preModifyProject(projectInfo, instanceId); |
|
|
|
|
|
|
|
return instanceId; |
|
|
|
} |
|
|
@@ -184,13 +184,11 @@ public class DefaultDeclaredProjectManage { |
|
|
|
* @param project |
|
|
|
* @param instanceId |
|
|
|
*/ |
|
|
|
private void modifyProject(Project project, String instanceId) { |
|
|
|
private void preModifyProject(Project project, String instanceId) { |
|
|
|
//流程启动之后 入库项目 重要业务信息 用于列表查询 展示 |
|
|
|
try { |
|
|
|
project.setUpdateOn(LocalDateTime.now()); |
|
|
|
project.setInstCode(instanceId); |
|
|
|
//调用状态机 进入下一个通过状态 |
|
|
|
stateMachineUtils.pass(project); |
|
|
|
projectService.updateById(project); |
|
|
|
|
|
|
|
//保存项目和实例的关系 |
|
|
|