From c0e3f24edd2ef47339c676ff3dc6fdc06b3c387e Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 18 十月 2024 10:42:40 +0800
Subject: [PATCH] 1)修改bug:可靠性预计参数配置,可靠性分布类型下拉框缺少威布尔分布; 2)细化可靠性仿真评估报错信息。

---
 modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseModelDao.xml |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseModelDao.xml b/modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseModelDao.xml
index ebf1303..9f0c345 100644
--- a/modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseModelDao.xml
+++ b/modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseModelDao.xml
@@ -9,13 +9,23 @@
              , a.NAME         as operatConditName
              , a.id           as operatConditId
              , case
-                   when b.id is null then 0
-                   else 1 end as isCheck
+                   when b.operat_condit_duration_rate &gt;'0' then 1
+                   else 0 end as isCheck
         FROM operat_condit a
                  left join task_phase_model b
                            on a.id = b.operat_condit_id and b.is_delete = 0 and b.phase_id = ${phaseId}
         WHERE a.IS_DELETE = 0
           and a.product_id = ${productId}
+        order by a.CREATE_DATE
+    </select>
+    <select id="getListByPhaseId" resultType="com.zt.life.modules.mainPart.taskReliability.model.TaskPhaseModel">
+        SELECT
+            a.*
+        FROM
+            task_phase_model a
+        where a.is_delete = 0
+          and a.operat_condit_duration_rate > 0
+          and a.phase_id=#{phaseId}
     </select>
 
 </mapper>

--
Gitblit v1.9.1