From a86c2eb2db34d2d350e5c2eb72bf6416ec89c0d2 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期二, 19 十一月 2024 11:43:03 +0800
Subject: [PATCH] 1)可靠性评定时新增模型检查处理; 2)获取任务二项分布参数时,去掉模型的匹配。
---
modules/mainPart/src/main/java/com/zt/life/modules/mainPart/taskReliability/service/ModelLineService.java | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/taskReliability/service/ModelLineService.java b/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/taskReliability/service/ModelLineService.java
index b1c6c3c..57ff08e 100644
--- a/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/taskReliability/service/ModelLineService.java
+++ b/modules/mainPart/src/main/java/com/zt/life/modules/mainPart/taskReliability/service/ModelLineService.java
@@ -157,7 +157,7 @@
JSONObject jsonObject = new JSONObject();
jsonObject.put("cells", rbdJsonArray);
modelRbd.setContent(jsonObject.toString());
- modelRbdDao.updateById(modelRbd);
+// modelRbdDao.updateById(modelRbd);
return result;
}
@@ -273,8 +273,8 @@
private void calcLayoutSize(RbdTreeNode root) {
double childrenWidth = 0.0;
double childrenHeight = 0.0;
- double lineWidth = 80;
- double lineHeight = 80;
+ double lineWidth = 120;
+ double lineHeight = 90;
if (!"vnode".equals(root.getNodeType())) {
root.setBlockWidth(root.getObjectWidth() + lineWidth);
root.setBlockHeight(root.getObjectHeight() + lineHeight);
@@ -366,6 +366,12 @@
String productType = JsonUtils2.getJsonValueByPath(jsonObject, "data/productType".split("/")).toString();
productImg.setProductType(productType);
if ("product_sb".equals(productType)) {
+ jsonValue = JsonUtils2.getJsonValueByPath(jsonObject, "data/deviceNo".split("/"));
+ if (jsonValue != null && StringUtils.isNotBlank(jsonValue.toString())) {
+ modelNode.setDeviceNo(Integer.valueOf(jsonValue.toString()));
+ } else {
+ modelNode.setDeviceNo(0);
+ }
jsonValue = JsonUtils2.getJsonValueByPath(jsonObject, "data/reliabDistribType".split("/"));
if (jsonValue != null && StringUtils.isNotBlank(jsonValue.toString())) {
productImg.setReliabDistribType(Integer.valueOf(jsonValue.toString()));
@@ -489,6 +495,7 @@
treeNode.setNodeType(node.getNodeType());
treeNode.setPicId(node.getPicId());
treeNode.setDataId(node.getDataId());
+ treeNode.setDeviceNo(node.getDeviceNo());
treeNode.setObjectWidth(node.getWidth());
treeNode.setObjectHeight(node.getHeight());
parent.getChildren().add(treeNode);
@@ -785,6 +792,7 @@
node.setId(root.getId());
node.setPicId(root.getPicId());
node.setDataId(root.getDataId());
+ node.setDeviceNo(root.getDeviceNo());
node.setNodeType(root.getNodeType());
node.setName(root.getName());
node.setVoteNum(root.getVoteNum());
--
Gitblit v1.9.1