Merge branch 'master' into docker_package
This commit is contained in:
commit
0d6347c964
|
@ -213,9 +213,15 @@ public class AbilityCenterControllerV2 {
|
|||
}, executor);
|
||||
|
||||
Boolean basic_facilities = dtoList.stream().map(index -> {
|
||||
Optional<ResourceDTO> resourceDTOOptional = Optional.ofNullable(resourceService.get(Long.valueOf(index.getResourceId()))); // 从本库内查不到 视为其它平台的基础设施资源
|
||||
return !resourceDTOOptional.isPresent() || !"基础设施".equals(resourceDTOOptional.isPresent() ? "" : resourceDTOOptional.get().getType());
|
||||
}).filter(index -> !index).findAny().orElse(Boolean.FALSE);
|
||||
Optional<ResourceDTO> resourceDTOOptional = Optional.ofNullable(resourceService.get(Long.valueOf(index.getResourceId())));
|
||||
if (!resourceDTOOptional.isPresent()) { // 从本库内查不到 视为其它平台的基础设施资源
|
||||
return true;
|
||||
}
|
||||
if ("基础设施".equals(resourceDTOOptional.get().getType())) { // 基础设施
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}).filter(index -> index).findAny().orElse(Boolean.FALSE);
|
||||
logger.error("--------------------是否全是基础设施{}----------------------------------------------", basic_facilities);
|
||||
final List<Long> ids = dtoList.stream().map(TAbilityApplicationDTO::getId).collect(Collectors.toList()); // 发起申请的表单id
|
||||
// 仿照请求接口 /act/running/startOfBusinessKey
|
||||
|
|
|
@ -120,7 +120,7 @@ public class CorrectionListenerV2 implements TaskListener, ExecutionListener, Ac
|
|||
/**
|
||||
* 结束审批
|
||||
*
|
||||
* @param kv
|
||||
* @param delegateExecution
|
||||
*/
|
||||
private void endTake(DelegateExecution delegateExecution) { // 进入最后结束节点
|
||||
Map<String, Object> kv = delegateExecution.getVariables();
|
||||
|
@ -151,7 +151,6 @@ public class CorrectionListenerV2 implements TaskListener, ExecutionListener, Ac
|
|||
} catch (Exception exception) {
|
||||
logger.error("上架网关失败", exception);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue