From fdb4fb8e81081534d296b738132b51bf149c2ef5 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 02 八月 2024 10:01:17 +0800
Subject: [PATCH] 修改仿真后台
---
modules/mainPart/src/main/resources/mapper/taskReliability/SimulatAssessDao.xml | 38 +++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/modules/mainPart/src/main/resources/mapper/taskReliability/SimulatAssessDao.xml b/modules/mainPart/src/main/resources/mapper/taskReliability/SimulatAssessDao.xml
index e0091ac..81f5f6a 100644
--- a/modules/mainPart/src/main/resources/mapper/taskReliability/SimulatAssessDao.xml
+++ b/modules/mainPart/src/main/resources/mapper/taskReliability/SimulatAssessDao.xml
@@ -18,5 +18,41 @@
and task_model_id = ${taskModelId}
and IS_DELETE = 0
</select>
-
+ <select id="getParams" resultType="com.zt.life.modules.mainPart.taskReliability.model.SimulatAssess">
+ select a.sampl_period, a.simulat_frequency
+ from simulat_assess a
+ where a.id = ${id}
+ and a.task_model_id = ${taskModelId}
+ and a.IS_DELETE = 0
+ </select>
+ <select id="getChildren" resultType="com.zt.life.modules.mainPart.taskReliability.dto.ProductStatusDto">
+ select * from (
+ SELECT f.id,f.name, 0 as sort
+ FROM product_model f
+ WHERE f.id = 1813102074724945921
+ AND f.is_delete = 0
+ union
+ SELECT f.id,f.name,f.sort
+ FROM `task_phase` a,
+ task_phase_model b,
+ operat_condit c,
+ operat_condit_model d,
+ model_rbd_node e,
+ product_model f
+ WHERE a.task_id = ${taskId}
+ and d.product_id = ${productId}
+ AND a.is_delete = 0
+ AND b.is_delete = 0
+ AND c.id = b.operat_condit_id
+ AND c.is_delete = 0
+ AND d.operat_condit_id = c.id
+ AND d.is_delete = 0
+ AND e.model_id = d.model_id
+ AND e.is_delete = 0
+ AND f.id = e.node_id
+ AND f.is_delete = 0
+ GROUP BY f.id,f.name,f.sort
+ ) as f
+ ORDER BY f.sort
+ </select>
</mapper>
--
Gitblit v1.9.1