规范一下代码

This commit is contained in:
459816669@qq.com 2021-03-09 19:56:26 +08:00
parent be74cf6235
commit 716d0f71fd
1 changed files with 3 additions and 1 deletions

View File

@ -221,7 +221,9 @@ public class FlowableServiceImpl implements FlowableService {
List<DeploymentVO> deploymentVoList = deployments.stream().map(t -> {
ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().deploymentId(t.getId()).singleResult();
// ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().deploymentId(t.getId()).singleResult();
ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().deploymentId(t.getId()).list().get(0);
DeploymentVO deploymentVO = new DeploymentVO();
BeanUtils.copyProperties(t, deploymentVO);
deploymentVO.setEngineVersion(processDefinition.getVersion());