| | |
| | | for (OperatConditModel gkModel : gkModelTree) { |
| | | XhProductModel node = (XhProductModel) productTreeList.stream().filter(item -> |
| | | gkModel.getProductId().equals(item.getId())).collect(Collectors.toList()).get(0); |
| | | if (isNodeInRbdOfParent(node, gkModelTree, rbdNodeList)) { |
| | | if (null == gkModel.getModelId()) { |
| | | // 工况模型树不完整 |
| | | setTaskModelCheckResult(task, phase, taskPhaseModel, |
| | |
| | | } |
| | | } |
| | | } |
| | | if (param.getRepairable() == null) { |
| | | setTaskModelCheckResult(task, phase, taskPhaseModel, |
| | | node, modelRbds.get(0), device, "是否可维修", |
| | | TaskModelCheckResultDto.CATEGORY_PARAM, checkResult); |
| | | } else { |
| | | if (1 == param.getRepairable()) { |
| | | // 可维修 |
| | | if (param.getRepairDistribType() == null) { |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | } |
| | | |
| | | private boolean isNodeInRbdOfParent(XhProductModel node, |
| | | List<OperatConditModel> gkModelTree, |
| | | List<ModelNodeAlgorithm> rbdNodeList) { |
| | | boolean result = false; |
| | | List<OperatConditModel> parents = gkModelTree.stream().filter(item -> |
| | | item.getProductId().equals(node.getPid())).collect(Collectors.toList()); |
| | | if (parents.size() > 0) { |
| | | OperatConditModel parent = parents.get(0); |
| | | if (parent.getModelId() != null) { |
| | | List<ModelNodeAlgorithm> nodes = rbdNodeList.stream().filter(item -> |
| | | item.getModelId().equals(parent.getModelId()) && item.getDataId().equals(node.getId())).collect(Collectors.toList()); |
| | | if (nodes.size() > 0) { |
| | | result = true; |
| | | } |
| | | } |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 可靠性评定:对任务可靠性模型、参数配置、可靠性评定数据进行完整性检查,并指出以下11类错误: |
| | | * 1)任务总时长未配置 |